[FIX]hr_negative_leave:fix leave types available when creating a leave request
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 1m33s

This commit is contained in:
2026-02-10 14:41:28 +01:00
parent 9e4342fba2
commit 9cb6049121
2 changed files with 5 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
{
"name": "hr_negative_leave",
"version": "16.0.3.0.0",
"version": "16.0.3.0.1",
"author": "Elabore",
"website": "https://elabore.coop",
"maintainer": "Elabore",

View File

@@ -6,15 +6,13 @@
<field name="arch" type="xml">
<xpath expr="//field[@name='holiday_status_id']" position="attributes">
<attribute name="domain">[
'|',
'|', '|', '|',
('requires_allocation', '=', 'no'),
'&amp;',
('has_valid_allocation', '=', True),
'|',
('allows_negative', '=', True),
'&amp;',
('virtual_remaining_leaves', '&gt;', 0),
('allows_negative', '=', False),
('virtual_remaining_leaves', '&gt;', 0)
]</attribute>
</xpath>
</field>