From 408ac6a5f03b4993027f41c1e66effc84b2d7426 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Mon, 31 Aug 2015 15:22:11 +0200 Subject: [PATCH] [FIX] hr_timesheet_invoice: on_change_account_id expects context instead of user_id This is related to 12c1993e03c5cd5b817da3433f1f4ea27455e423 --- addons/hr_timesheet_invoice/hr_timesheet_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py index db8ab48cdda..babc6dbb05f 100644 --- a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py +++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py @@ -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',{})