Merge pull request #336 from odoo-dev/7.0-opw-608606-fka
[FIX] account_report_company: display_name field is not computed for non-active partners
This commit is contained in:
commit
80b8dcdbfa
|
@ -31,7 +31,7 @@ class res_partner(osv.Model):
|
|||
return dict(self.name_get(cr, uid, ids, context=context))
|
||||
|
||||
_display_name_store_triggers = {
|
||||
'res.partner': (lambda self,cr,uid,ids,context=None: self.search(cr, uid, [('id','child_of',ids)]),
|
||||
'res.partner': (lambda self,cr,uid,ids,context=None: self.search(cr, uid, [('id','child_of',ids)], context=dict(active_test=False)),
|
||||
['parent_id', 'is_company', 'name'], 10)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue