[FIX] analytic: should not set mutable objects in method declaration (python gotcha)

bzr revid: mat@openerp.com-20140509093304-ao8ttky1trgz22ao
This commit is contained in:
Martin Trigaux 2014-05-09 11:33:04 +02:00
parent aacab2335f
commit 3a0b63942e
1 changed files with 1 additions and 1 deletions

View File

@ -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)