From 15715e822c8cca6b2a374f5308482d0dbfa93ee1 Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Tue, 7 Nov 2017 16:32:08 +0100 Subject: [PATCH] [FIX] hr_timesheet_sheet: avoid ambigous field action in sql. ERROR: column reference "action" is ambiguous This commit closes #13839 --- addons/hr_timesheet_sheet/hr_timesheet_sheet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py index ec72fc30c42..02c15a63f46 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py @@ -580,7 +580,7 @@ class hr_timesheet_sheet_sheet_day(osv.osv): ON r.user_id = u.id LEFT JOIN res_partner p ON u.partner_id = p.id - WHERE action in ('sign_in', 'sign_out') + WHERE a.action in ('sign_in', 'sign_out') group by (a.name AT TIME ZONE 'UTC' AT TIME ZONE coalesce(p.tz, 'UTC'))::date, s.id, timezone )) AS foo GROUP BY name, sheet_id, timezone