Skip to content
Snippets Groups Projects
Commit ce7a9d50 authored by Víctor Martínez's avatar Víctor Martínez
Browse files

[FIX] hr_holidays: Set domain correctly according to company_ids from Leave...

[FIX] hr_holidays: Set domain correctly according to company_ids from Leave Allocations: multi company global rule

closes odoo/odoo#75397

Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
parent 88d74fde
Branches
Tags
No related merge requests found
......@@ -139,7 +139,7 @@
<record id="hr_leave_allocation_rule_multicompany" model="ir.rule">
<field name="name">Leave Allocations: multi company global rule</field>
<field name="model_id" ref="model_hr_leave_allocation"/>
<field name="domain_force">['|', ('holiday_status_id.company_id', '=', False), ('holiday_status_id.company_id', 'in', [user.company_id.id])]</field>
<field name="domain_force">['|', ('holiday_status_id.company_id', '=', False), ('holiday_status_id.company_id', 'in', company_ids)]</field>
</record>
<record id="hr_leave_allocation_rule_employee" model="ir.rule">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment