[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:
Olivier Dony 2013-08-13 10:22:47 +02:00
parent f9ddd354bd
commit 54499cd053
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ class res_partner(osv.Model):
_order = 'display_name'
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))
_display_name_store_triggers = {