We need to support the accrual allocation for leaves.
This is a special type of allocations that adds some leaves to the
allocation every X amount of time worked.
This kind of allocations is especially used in the USA, but can also be
used in other contexts (eg: In Belgium we could allocate 20 days per
year for the legal leaves)
These allocations have support for :
* A max balance limit
* Going in negative (if set on the leave_type and the manager
approves the leaves)
* Removing the unpaid leaves from the quantity of days worked
* Setting an end date after which it does not allocate anymore leaves
Task #46114
Closes #22292
38 lines
1.4 KiB
XML
38 lines
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
|
|
<!-- Casual leave -->
|
|
<record id="holiday_status_cl" model="hr.leave.type">
|
|
<field name="name" eval="'Legal Leaves '+time.strftime('%Y')"/>
|
|
<field name="limit" eval="False"/>
|
|
<field name="color_name">black</field>
|
|
<field name="validity_start" eval="time.strftime('%Y-01-01')"/>
|
|
<field name="validity_stop" eval="time.strftime('%Y-12-31')"/>
|
|
</record>
|
|
|
|
<!-- Sick leave -->
|
|
<record id="holiday_status_sl" model="hr.leave.type">
|
|
<field name="name">Sick Leaves</field>
|
|
<field name="limit" eval="True"/>
|
|
<field name="color_name">red</field>
|
|
</record>
|
|
|
|
<!-- Compensatory Days -->
|
|
<record id="holiday_status_comp" model="hr.leave.type">
|
|
<field name="name">Compensatory Days</field>
|
|
<field name="limit" eval="False"/>
|
|
<field name="color_name">lavender</field>
|
|
<field name="validity_start" eval="time.strftime('%Y-01-01')"/>
|
|
<field name="validity_stop" eval="time.strftime('%Y-12-31')"/>
|
|
</record>
|
|
|
|
<!--Unpaid Leave -->
|
|
<record id="holiday_status_unpaid" model="hr.leave.type">
|
|
<field name="name">Unpaid</field>
|
|
<field name="color_name">brown</field>
|
|
<field name="unpaid" eval="True"/>
|
|
</record>
|
|
</data>
|
|
</odoo>
|