[FIX] res.partner: prevent show_email context option from polluting display_name

bzr revid: odo@openerp.com-20140212080331-diit15a9sz7do4cu
This commit is contained in:
Olivier Dony
2014-02-12 09:03:31 +01:00
parent 7576c80a36
commit 6a8ce77426
+1
View File
@@ -209,6 +209,7 @@ class res_partner(osv.osv, format_address):
context = dict(context or {})
context.pop('show_address', None)
context.pop('show_address_only', None)
context.pop('show_email', 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