[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:
parent
fbd0758cb5
commit
e56a0c565f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue