[FIX] partner address search
lp bug: https://launchpad.net/bugs/400378 fixed bzr revid: christophe@tinyerp.com-20090820111028-3qu3v603e99i6ek8
This commit is contained in:
parent
48ed571bab
commit
f8aba81765
|
@ -325,7 +325,10 @@ class res_partner_address(osv.osv):
|
|||
if context.get('contact_display', 'contact')=='partner':
|
||||
ids = self.search(cr, user, [('partner_id',operator,name)], limit=limit, context=context)
|
||||
else:
|
||||
ids = self.search(cr, user, [('zip','=',name)] + args, limit=limit, context=context)
|
||||
if not name:
|
||||
ids = self.search(cr, user, args, limit=limit, context=context)
|
||||
else:
|
||||
ids = self.search(cr, user, [('zip','=',name)] + args, limit=limit, context=context)
|
||||
if not ids:
|
||||
ids = self.search(cr, user, [('city',operator,name)] + args, limit=limit, context=context)
|
||||
if name:
|
||||
|
|
Loading…
Reference in New Issue