[FIX] account_report_company: avoid including the address in the computed display name
bzr revid: odo@openerp.com-20130813082247-fz1cv55l82j9uo3l
This commit is contained in:
parent
f9ddd354bd
commit
54499cd053
|
@ -26,6 +26,8 @@ class res_partner(osv.Model):
|
||||||
_order = 'display_name'
|
_order = 'display_name'
|
||||||
|
|
||||||
def _display_name_compute(self, cr, uid, ids, name, args, context=None):
|
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))
|
return dict(self.name_get(cr, uid, ids, context=context))
|
||||||
|
|
||||||
_display_name_store_triggers = {
|
_display_name_store_triggers = {
|
||||||
|
|
Loading…
Reference in New Issue