diff --git a/addons/hr_timesheet_project/wizard/timesheet_hour_encode.py b/addons/hr_timesheet_project/wizard/timesheet_hour_encode.py index 9c6389c1322..d06cf59997c 100644 --- a/addons/hr_timesheet_project/wizard/timesheet_hour_encode.py +++ b/addons/hr_timesheet_project/wizard/timesheet_hour_encode.py @@ -42,7 +42,7 @@ def _action_line_create(self, cr, uid, data, context): for work in tw.browse(cr, uid, ids, context): if work.task_id.project_id.category_id: unit_id = ts._getEmployeeUnit(cr, uid, context) - product_id = ts._getEmployeeUnit(cr, uid, context) + product_id = ts._getEmployeeProduct(cr, uid, context) res = { 'name': work.name, 'date': time.strftime('%Y-%m-%d'),