[FIX] name search should return results when the limit is False or 0

bzr revid: xmo@openerp.com-20120410144138-3svjalgxeop2lif3
This commit is contained in:
Xavier Morel 2012-04-10 16:41:38 +02:00
parent 8f3ce9a7f8
commit 0006222d99
1 changed files with 2 additions and 1 deletions

View File

@ -376,7 +376,8 @@ class res_partner_address(osv.osv):
old_ids = set(ids)
ids.extend([id for id in new_ids if id not in old_ids])
ids = ids[:limit]
if limit:
ids = ids[:limit]
return self.name_get(cr, user, ids, context=context)
def get_city(self, cr, uid, id):