[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
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 1m33s
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "hr_negative_leave",
|
"name": "hr_negative_leave",
|
||||||
"version": "16.0.3.0.0",
|
"version": "16.0.3.0.1",
|
||||||
"author": "Elabore",
|
"author": "Elabore",
|
||||||
"website": "https://elabore.coop",
|
"website": "https://elabore.coop",
|
||||||
"maintainer": "Elabore",
|
"maintainer": "Elabore",
|
||||||
|
|||||||
@@ -6,16 +6,14 @@
|
|||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<xpath expr="//field[@name='holiday_status_id']" position="attributes">
|
<xpath expr="//field[@name='holiday_status_id']" position="attributes">
|
||||||
<attribute name="domain">[
|
<attribute name="domain">[
|
||||||
'|',
|
'|', '|', '|',
|
||||||
('requires_allocation', '=', 'no'),
|
('requires_allocation', '=', 'no'),
|
||||||
'&',
|
|
||||||
('has_valid_allocation', '=', True),
|
('has_valid_allocation', '=', True),
|
||||||
'|',
|
|
||||||
('allows_negative', '=', True),
|
('allows_negative', '=', True),
|
||||||
'&',
|
'&',
|
||||||
('virtual_remaining_leaves', '>', 0),
|
('allows_negative', '=', False),
|
||||||
('allows_negative', '=', False),
|
('virtual_remaining_leaves', '>', 0)
|
||||||
]</attribute>
|
]</attribute>
|
||||||
</xpath>
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|||||||
Reference in New Issue
Block a user