parent
1ae6ee2693
commit
292908690a
|
@ -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 '/'))
|
||||
|
|
Loading…
Reference in New Issue