[MERGE] (Manual) Foward-port of addons 7.0 bugfix revid:odo@openerp.com-20130813082247-fz1cv55l82j9uo3l

res.partner: avoid including the address in the computed display name

bzr revid: odo@openerp.com-20130820152025-3yt7gtnaeztdt1nh
This commit is contained in:
Olivier Dony 2013-08-20 17:20:25 +02:00
parent fbd0758cb5
commit e56a0c565f
1 changed files with 2 additions and 0 deletions

View File

@ -208,6 +208,8 @@ class res_partner(osv.osv, format_address):
return result
def _display_name_compute(self, cr, uid, ids, name, args, context=None):
context = dict(context or {})
context.pop('show_address', None)
return dict(self.name_get(cr, uid, ids, context=context))
# indirections to avoid passing a copy of the overridable method when declaring the function field