From a4b6e3a82a4621e4fd80b69ff5b3bd828de30b9f Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Tue, 24 Nov 2015 11:22:09 +0100 Subject: [PATCH] [FIX] hr_timesheet_sheet: select timesheet Select analytic lines related to timesheet only. opw-654362 --- addons/hr_timesheet_sheet/hr_timesheet_sheet.py | 1 + 1 file changed, 1 insertion(+) 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,})