From aa4be1c39d246a1a48c40bf7717c23809ca2e7ef Mon Sep 17 00:00:00 2001 From: Adrien Widart Date: Wed, 2 Dec 2020 10:41:03 +0000 Subject: [FIX] hr_holidays_calendar: hide archived employee When going on Leaves dashboard, if an employee is archived, his leaves are still displayed. To reproduce the error: 1. Add time-off to an employee E 2. Archive E 3. Go back to Time Off module > Everyone => The E's leaves are still shown They should be hidden. Notes: Manual forward-port. In previous versions, the fix concerned the `hr_holidays` module Replace #62795 Initial PR #62726 OPW-2406702 closes odoo/odoo#62966 X-original-commit: d812a0a986339f841701399815dbedca3d3b2cf4 Signed-off-by: adwid --- addons/hr_holidays/report/hr_leave_report_calendar.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/hr_holidays') diff --git a/addons/hr_holidays/report/hr_leave_report_calendar.xml b/addons/hr_holidays/report/hr_leave_report_calendar.xml index cdca2a9b52d..c7f8a78e477 100644 --- a/addons/hr_holidays/report/hr_leave_report_calendar.xml +++ b/addons/hr_holidays/report/hr_leave_report_calendar.xml @@ -8,7 +8,7 @@ a stable release. --> - + [('employee_id.active','=',True)] {'hide_employee_name': 1} -- cgit v1.2.3