2018-01-16 06:58:15 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-01-16 11:34:37 +01:00
|
|
|
<flectra>
|
2018-01-16 06:58:15 +01:00
|
|
|
<data noupdate="1">
|
|
|
|
|
|
|
|
<!-- Casual leave -->
|
|
|
|
<record id="holiday_status_cl" model="hr.holidays.status">
|
|
|
|
<field name="name" eval="'Legal Leaves '+time.strftime('%Y')"/>
|
|
|
|
<field name="limit" eval="False"/>
|
|
|
|
<field name="color_name">black</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Sick leave -->
|
|
|
|
<record id="holiday_status_sl" model="hr.holidays.status">
|
|
|
|
<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.holidays.status">
|
|
|
|
<field name="name">Compensatory Days</field>
|
|
|
|
<field name="limit" eval="False"/>
|
|
|
|
<field name="color_name">lavender</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!--Unpaid Leave -->
|
|
|
|
<record id="holiday_status_unpaid" model="hr.holidays.status">
|
|
|
|
<field name="name">Unpaid</field>
|
|
|
|
<field name="limit" eval="True"/>
|
|
|
|
<field name="color_name">brown</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Holidays-related subtypes for messaging / Chatter -->
|
|
|
|
<record id="mt_holidays_confirmed" model="mail.message.subtype">
|
|
|
|
<field name="name">Confirmed</field>
|
|
|
|
<field name="res_model">hr.holidays</field>
|
|
|
|
<field name="description">Request created and waiting confirmation</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="mt_holidays_first_validated" model="mail.message.subtype">
|
|
|
|
<field name="name">Waiting Second Validation</field>
|
|
|
|
<field name="res_model">hr.holidays</field>
|
|
|
|
<field name="default" eval="False"/>
|
|
|
|
<field name="description">Request validated, waiting second validation</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="mt_holidays_approved" model="mail.message.subtype">
|
|
|
|
<field name="name">Approved</field>
|
|
|
|
<field name="res_model">hr.holidays</field>
|
|
|
|
<field name="description">Request approved</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="mt_holidays_refused" model="mail.message.subtype">
|
|
|
|
<field name="name">Refused</field>
|
|
|
|
<field name="res_model">hr.holidays</field>
|
|
|
|
<field name="default" eval="False"/>
|
|
|
|
<field name="description">Request refused</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Department related subtypes for messaging / Chatter -->
|
|
|
|
<record id="mt_department_holidays_confirmed" model="mail.message.subtype">
|
|
|
|
<field name="name">Leaves/Allocations Confirmed</field>
|
|
|
|
<field name="res_model">hr.department</field>
|
|
|
|
<field name="default" eval="True"/>
|
|
|
|
<field name="parent_id" eval="ref('mt_holidays_confirmed')"/>
|
|
|
|
<field name="relation_field">department_id</field>
|
|
|
|
<field name="sequence" eval="6"/>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="mt_department_holidays_first_validated" model="mail.message.subtype">
|
|
|
|
<field name="name">Leaves/Allocations First Approval</field>
|
|
|
|
<field name="res_model">hr.department</field>
|
|
|
|
<field name="default" eval="False"/>
|
|
|
|
<field name="parent_id" eval="ref('mt_holidays_first_validated')"/>
|
|
|
|
<field name="relation_field">department_id</field>
|
|
|
|
<field name="sequence" eval="7"/>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="mt_department_holidays_approved" model="mail.message.subtype">
|
|
|
|
<field name="name">Leaves/Allocation Approved</field>
|
|
|
|
<field name="res_model">hr.department</field>
|
|
|
|
<field name="default" eval="False"/>
|
|
|
|
<field name="parent_id" eval="ref('mt_holidays_approved')"/>
|
|
|
|
<field name="relation_field">department_id</field>
|
|
|
|
<field name="sequence" eval="8"/>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="mt_department_holidays_refused" model="mail.message.subtype">
|
|
|
|
<field name="name">Leaves/Allocation Refused</field>
|
|
|
|
<field name="res_model">hr.department</field>
|
|
|
|
<field name="default" eval="False"/>
|
|
|
|
<field name="parent_id" eval="ref('mt_holidays_refused')"/>
|
|
|
|
<field name="relation_field">department_id</field>
|
|
|
|
<field name="sequence" eval="9"/>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
</data>
|
2018-01-16 11:34:37 +01:00
|
|
|
</flectra>
|