Compare commits
1 Commits
16.0
...
16.0-dev-n
Author | SHA1 | Date | |
---|---|---|---|
385781db09 |
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "allow_negative_leave_and_allocation",
|
"name": "allow_negative_leave_and_allocation",
|
||||||
"version": "16.0.1.0.1",
|
"version": "16.0.1.0.2",
|
||||||
"author": "Elabore",
|
"author": "Elabore",
|
||||||
"website": "https://elabore.coop",
|
"website": "https://elabore.coop",
|
||||||
"maintainer": "Elabore",
|
"maintainer": "Elabore",
|
||||||
|
@@ -2,7 +2,9 @@
|
|||||||
<t t-name="allow_negative_leave_and_allocation.TimeOffCard" t-inherit="hr_holidays.TimeOffCard" t-inherit-mode="extension" owl="1">
|
<t t-name="allow_negative_leave_and_allocation.TimeOffCard" t-inherit="hr_holidays.TimeOffCard" t-inherit-mode="extension" owl="1">
|
||||||
<xpath expr="//t[@t-set='duration']" position="replace">
|
<xpath expr="//t[@t-set='duration']" position="replace">
|
||||||
<t t-set="duration" t-value="props.requires_allocation
|
<t t-set="duration" t-value="props.requires_allocation
|
||||||
? (props.data['allows_negative'] ? data.usable_remaining_leaves : data.virtual_remaining_leaves)
|
? (props.data['allows_negative']
|
||||||
|
? (data.virtual_remaining_leaves > 0 ? data.virtual_remaining_leaves : data.usable_remaining_leaves)
|
||||||
|
: data.virtual_remaining_leaves)
|
||||||
: data.virtual_leaves_taken" />
|
: data.virtual_leaves_taken" />
|
||||||
</xpath>
|
</xpath>
|
||||||
</t>
|
</t>
|
||||||
|
Reference in New Issue
Block a user