From f669c70e42425e1891865fd7eca4535a8228fe7b Mon Sep 17 00:00:00 2001 From: Dossogne Bertrand Date: Wed, 24 Aug 2022 14:04:58 +0000 Subject: [PATCH] [FIX] hr_holidays: correct "current year" filter Before this commit, the "Current Year" filter on the time off analysis report showed records according to the activeness of their status. This commit fixes that filter. taskID 2951192 closes odoo/odoo#98826 Signed-off-by: Kevin Baptiste --- addons/hr_holidays/report/hr_leave_report.py | 4 ++-- addons/hr_holidays/report/hr_leave_reports.xml | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/addons/hr_holidays/report/hr_leave_report.py b/addons/hr_holidays/report/hr_leave_report.py index b351f9c9470..ca4b81e9ce1 100644 --- a/addons/hr_holidays/report/hr_leave_report.py +++ b/addons/hr_holidays/report/hr_leave_report.py @@ -68,8 +68,8 @@ class LeaveReport(models.Model): allocation.holiday_status_id as holiday_status_id, allocation.state as state, allocation.holiday_type, - null as date_from, - null as date_to, + allocation.date_from as date_from, + allocation.date_to as date_to, 'allocation' as leave_type, allocation.employee_company_id as company_id from hr_leave_allocation as allocation diff --git a/addons/hr_holidays/report/hr_leave_reports.xml b/addons/hr_holidays/report/hr_leave_reports.xml index a3c9bed8601..be3af89183a 100644 --- a/addons/hr_holidays/report/hr_leave_reports.xml +++ b/addons/hr_holidays/report/hr_leave_reports.xml @@ -17,8 +17,7 @@ - +