[FIX] analytic: should not set mutable objects in method declaration (python gotcha)
bzr revid: mat@openerp.com-20140509093304-ao8ttky1trgz22ao
This commit is contained in:
parent
aacab2335f
commit
3a0b63942e
|
@ -219,7 +219,7 @@ class account_analytic_account(osv.osv):
|
|||
res['value']['description'] = template.description
|
||||
return res
|
||||
|
||||
def on_change_partner_id(self, cr, uid, ids,partner_id, name, context={}):
|
||||
def on_change_partner_id(self, cr, uid, ids,partner_id, name, context=None):
|
||||
res={}
|
||||
if partner_id:
|
||||
partner = self.pool.get('res.partner').browse(cr, uid, partner_id, context=context)
|
||||
|
|
Loading…
Reference in New Issue