From a3d768a3cd6b81d03a6faba7d6dd77c69081c487 Mon Sep 17 00:00:00 2001 From: "Amit (OpenERP)" Date: Tue, 24 Apr 2012 18:29:52 +0530 Subject: [PATCH] [FIX] Correction on above fix bzr revid: amp@tinyerp.com-20120424125952-60z1bclva62j8qxt --- 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 eff4ea8778a..2cec9b90a40 100644 --- a/addons/project_timesheet/project_timesheet.py +++ b/addons/project_timesheet/project_timesheet.py @@ -149,7 +149,7 @@ class project_work(osv.osv): default_uom = self.pool.get('res.users').browse(cr, uid, uid).company_id.project_time_mode_id.id vals_line['unit_amount'] = vals['hours'] prod_id = vals_line.get('product_id', line_id.product_id.id) # False may be set - result = self.get_user_related_details(cr, uid, vals.get('user_id', uid)) + result = self.get_user_related_details(cr, uid, vals.get('user_id', task.user_id.id)) for fld in ('product_id', 'general_account_id', 'journal_id', 'product_uom_id'): if result.get(fld, False): vals_line[fld] = result[fld]