Skip to content
Snippets Groups Projects
Commit 74eb6624 authored by Foram Katharotiya's avatar Foram Katharotiya
Browse files

[FIX] display_name is not compute for non-active partner

parent 6e5bef9b
Branches
Tags
No related merge requests found
......@@ -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)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment