diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py index 876a871e488..92b6b4b95aa 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py @@ -310,6 +310,7 @@ class account_analytic_line(osv.osv): WHERE %(date_to)s >= l.date AND %(date_from)s <= l.date AND %(user_id)s = l.user_id + AND l.is_timesheet = True GROUP BY l.id""", {'date_from': ts.date_from, 'date_to': ts.date_to, 'user_id': ts.employee_id.user_id.id,})