diff options
| author | Adrien Widart <awt@odoo.com> | 2020-12-02 10:41:03 +0000 |
|---|---|---|
| committer | Adrien Widart <awt@odoo.com> | 2020-12-07 15:01:56 +0000 |
| commit | aa4be1c39d246a1a48c40bf7717c23809ca2e7ef (patch) | |
| tree | eb90ad9e8bfaa098169a290b21656b73d38e329a /addons/hr_holidays | |
| parent | c4505b704489db7ef47dd9a201def536a99d03f3 (diff) | |
[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 <adwid@users.noreply.github.com>
Diffstat (limited to 'addons/hr_holidays')
| -rw-r--r-- | addons/hr_holidays/report/hr_leave_report_calendar.xml | 2 |
1 files changed, 1 insertions, 1 deletions
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. --> <field name="view_id"/> <field name="search_view_id"/> - <field name="domain"/> + <field name="domain">[('employee_id.active','=',True)]</field> <field name="context">{'hide_employee_name': 1}</field> </record> |
