Skip to content
Snippets Groups Projects
Commit 29290869 authored by Fabien Pinckaers's avatar Fabien Pinckaers
Browse files

fix

bzr revid: fp@tinyerp.com-20101018132658-j5byga520ep4hsze
parent 1ae6ee26
No related branches found
No related tags found
No related merge requests found
......@@ -305,7 +305,7 @@ class res_partner_address(osv.osv):
if r['name'] and (r['city'] or r['country_id']):
addr += ', '
addr += (r['country_id'] and r['country_id'][1] or '') + ' ' + (r['city'] or '') + ' ' + (r['street'] or '')
if context.get('contact_display', 'contact')=='partner_address':
if (context.get('contact_display', 'contact')=='partner_address') and r['partner_id']:
res.append((r['id'], "%s: %s" % (r['partner_id'][1], addr.strip() or '/')))
else:
res.append((r['id'], addr.strip() or '/'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment