[FIX] res.partner: proper store trigger for display name field

That was a stupid oversight, sorry!

bzr revid: odo@openerp.com-20130423130656-celrtr352yht19ro
This commit is contained in:
Olivier Dony 2013-04-23 15:06:56 +02:00
parent e5736828f9
commit 2e4aafa7dc
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class res_partner(osv.Model):
_display_name_store_triggers = {
'res.partner': (lambda self,cr,uid,ids,context=None: self.search(cr, uid, [('id','child_of',ids)]),
['parent_id', 'is_company'], 10)
['parent_id', 'is_company', 'name'], 10)
}
# indirection to avoid passing a copy of the overridable method when declaring the function field