[FIX] Bug 376724 : Corrected name_get for res_partner_address

bzr revid: jvo@tinyerp.com-20090518094544-s2gd61b1hrtkcuw3
This commit is contained in:
Jay (Open ERP) 2009-05-18 15:15:44 +05:30
parent e9896571e3
commit 11e5755711
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ class res_partner_address(osv.osv):
return []
res = []
for r in self.read(cr, user, ids, ['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 = str('')