Fix partner contact address to display '/' if the name is empty
bzr revid: ced-dfc6f2f18f56a15746eadc4c8a2a8ff87b101d2d
This commit is contained in:
parent
7bde947542
commit
f35c7e5b1d
|
@ -357,7 +357,7 @@ class res_partner_address(osv.osv):
|
|||
if r['name'] and (r['zip'] or r['city']):
|
||||
addr += ', '
|
||||
addr += str(r['zip'] or '') + ' ' + str(r['city'] or '')
|
||||
res.append((r['id'], addr or '/'))
|
||||
res.append((r['id'], addr.strip() or '/'))
|
||||
return res
|
||||
|
||||
def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=80):
|
||||
|
|
Loading…
Reference in New Issue