[IMP] res.partner.address: improved formatting in name_get
bzr revid: odo@openerp.com-20100909142851-s7ny5mhv18qztncp
This commit is contained in:
parent
4e6047dca4
commit
d5a8728994
|
@ -306,7 +306,7 @@ class res_partner_address(osv.osv):
|
|||
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':
|
||||
res.append((r['id'], r['partner_id'][1] +','+ addr.strip() or '/'))
|
||||
res.append((r['id'], "%s: %s" % (r['partner_id'][1], addr.strip() or '/')))
|
||||
else:
|
||||
res.append((r['id'], addr.strip() or '/'))
|
||||
return res
|
||||
|
|
Loading…
Reference in New Issue