[FIX] Partner : Name_get() of res.partner.address corrected

lp bug: https://launchpad.net/bugs/503445 fixed

bzr revid: jvo@tinyerp.com-20100106052132-9349s28uuc6ds7a1
This commit is contained in:
Jay (Open ERP)
2010-01-06 10:51:32 +05:30
parent 3b942477d8
commit 0d8dcf4815
+1 -1
View File
@@ -307,7 +307,7 @@ class res_partner_address(osv.osv):
return []
res = []
for r in self.read(cr, user, ids, ['name','zip','city','partner_id', 'street']):
if context.get('contact_display', 'contact')=='partner':
if context.get('contact_display', 'contact')=='partner' and r['partner_id']:
res.append((r['id'], r['partner_id'][1]))
else:
addr = r['name'] or ''