[ADD]allow_negative_leave_and_allocation

This commit is contained in:
2025-04-16 15:05:12 +02:00
parent beb64d034d
commit 4a00e642e0
14 changed files with 980 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
<template>
<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">
<t t-set="duration" t-value="props.requires_allocation
? (props.data['allows_negative'] ? data.usable_remaining_leaves : data.virtual_remaining_leaves)
: data.virtual_leaves_taken" />
</xpath>
</t>
</template>