From 9e1399d2b3d06e71e6704a569c9d62933abe6c07 Mon Sep 17 00:00:00 2001 From: tfossoul Date: Thu, 19 Jun 2014 09:45:14 +0200 Subject: [PATCH] vals=vals_line on a create function Come on !!!! timesheet_obj.create(cr, uid, vals=vals_line, context=context) timesheet_obj.create(cr, uid, vals_line, context=context) --- addons/project_timesheet/project_timesheet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/project_timesheet/project_timesheet.py b/addons/project_timesheet/project_timesheet.py index 31a396369e2..f6c2321d1f9 100644 --- a/addons/project_timesheet/project_timesheet.py +++ b/addons/project_timesheet/project_timesheet.py @@ -137,7 +137,7 @@ class project_work(osv.osv): amount = vals_line['unit_amount'] prod_id = vals_line['product_id'] unit = False - timeline_id = timesheet_obj.create(cr, uid, vals=vals_line, context=context) + timeline_id = timesheet_obj.create(cr, uid, vals_line, context=context) # Compute based on pricetype amount_unit = timesheet_obj.on_change_unit_amount(cr, uid, timeline_id,