[FIX] res_partner: do not write on the partner if the dict of update_address is void; this could cause a loop with subscribers.

bzr revid: tde@openerp.com-20120813152413-j62vvzxp3ijpfc4n
This commit is contained in:
Thibault Delavallée 2012-08-13 17:24:13 +02:00
parent d3ed214101
commit cc84d7d168
1 changed files with 2 additions and 1 deletions

View File

@ -318,7 +318,8 @@ class res_partner(osv.osv):
def update_address(self, cr, uid, ids, vals, context=None):
addr_vals = dict((key, vals[key]) for key in POSTAL_ADDRESS_FIELDS if vals.get(key))
return super(res_partner, self).write(cr, uid, ids, addr_vals, context)
if addr_vals:
return super(res_partner, self).write(cr, uid, ids, addr_vals, context)
def name_get(self, cr, uid, ids, context=None):
if context is None: