[FIX] hr_timesheet_invoice: on_change_account_id expects context instead of user_id

This is related to 12c1993e03
This commit is contained in:
Denis Ledoux 2015-08-31 15:22:11 +02:00
parent 12c1993e03
commit 408ac6a5f0
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ class hr_analytic_timesheet(osv.osv):
_inherit = "hr.analytic.timesheet"
def on_change_account_id(self, cr, uid, ids, account_id, user_id=False):
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:
return res
res.setdefault('value',{})