Skip to content
Snippets Groups Projects
Commit aa4be1c3 authored by Adrien Widart's avatar Adrien Widart
Browse files

[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: d812a0a9
Signed-off-by: default avataradwid <adwid@users.noreply.github.com>
parent c4505b70
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment