Fix partner contact address to display '/' if the name is empty

bzr revid: ced-dfc6f2f18f56a15746eadc4c8a2a8ff87b101d2d
This commit is contained in:
ced 2007-08-30 14:22:28 +00:00
parent 7bde947542
commit f35c7e5b1d
1 changed files with 1 additions and 1 deletions

View File

@ -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):