diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py index 62427fcff87..690d71f3a81 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py @@ -480,6 +480,7 @@ class hr_timesheet_sheet_sheet_day(osv.osv): SUM(((EXTRACT(hour FROM a.name) * 60) + EXTRACT(minute FROM a.name)) * (CASE WHEN a.action = 'sign_in' THEN -1 ELSE 1 END)) as total_attendance from hr_attendance a + WHERE action in ('sign_in', 'sign_out') group by a.name::date, a.sheet_id )) AS foo GROUP BY name, sheet_id