[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:
parent
8f3ce9a7f8
commit
0006222d99
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue