[FIX] hr_timesheet_invoice: on_change_account_id expects context instead of user_id
This is related to 12c1993e03
This commit is contained in:
parent
12c1993e03
commit
408ac6a5f0
|
@ -321,7 +321,7 @@ class hr_analytic_timesheet(osv.osv):
|
||||||
_inherit = "hr.analytic.timesheet"
|
_inherit = "hr.analytic.timesheet"
|
||||||
def on_change_account_id(self, cr, uid, ids, account_id, user_id=False):
|
def on_change_account_id(self, cr, uid, ids, account_id, user_id=False):
|
||||||
res = super(hr_analytic_timesheet, self).on_change_account_id(
|
res = super(hr_analytic_timesheet, self).on_change_account_id(
|
||||||
cr, uid, ids, account_id, user_id=user_id)
|
cr, uid, ids, account_id, context=user_id)
|
||||||
if not account_id:
|
if not account_id:
|
||||||
return res
|
return res
|
||||||
res.setdefault('value',{})
|
res.setdefault('value',{})
|
||||||
|
|
Loading…
Reference in New Issue