4 <!-- After installation of the module, open the related menu -->
5 <record id="base.open_menu" model="ir.actions.todo">
6 <field name="action_id" ref="hr.action_client_hr_menu"/>
7 <field name="state">open</field>
9 <!-- notify all employees of module installation -->
10 <record model="mail.message" id="module_install_notification">
11 <field name="model">mail.group</field>
12 <field name="res_id" ref="mail.group_all_employees"/>
13 <field name="type">notification</field>
14 <field name="subtype_id" ref="mail.mt_comment"/>
15 <field name="subject">Leave Management application installed!</field>
16 <field name="body"><![CDATA[<p>Manage employee leaves from the top menu "Human Resources". Employees can create leave requests that are validated by their manager and/or HR officers.</p>
17 <p>Once validated, they are visible in the employee's calendar. HR officers can define leave types and allocate leaves to employees and employee categories.</p>]]></field>
22 <record model="hr.holidays.status" id="holiday_status_cl">
23 <field name="name" eval="'Legal Leaves '+time.strftime('%Y')"/>
24 <field name="color_name">black</field>
28 <record model="hr.holidays.status" id="holiday_status_sl">
29 <field name="name">Sick Leaves</field>
30 <field name="limit">True</field>
31 <field name="color_name">red</field>
34 <!-- Compensatory Days -->
35 <record model="hr.holidays.status" id="holiday_status_comp">
36 <field name="name">Compensatory Days</field>
37 <field name="limit">True</field>
38 <field name="color_name">lavender</field>
42 <record model="hr.holidays.status" id="holiday_status_unpaid">
43 <field name="name">Unpaid</field>
44 <field name="limit">True</field>
45 <field name="color_name">brown</field>
48 <!-- Holidays-related subtypes for messaging / Chatter -->
49 <record id="mt_holidays_confirmed" model="mail.message.subtype">
50 <field name="name">To Approve</field>
51 <field name="res_model">hr.holidays</field>
52 <field name="description">Request created and waiting confirmation</field>
54 <record id="mt_holidays_approved" model="mail.message.subtype">
55 <field name="name">Approved</field>
56 <field name="res_model">hr.holidays</field>
57 <field name="description">Request approved</field>
59 <record id="mt_holidays_refused" model="mail.message.subtype">
60 <field name="name">Refused</field>
61 <field name="res_model">hr.holidays</field>
62 <field name="default" eval="False"/>
63 <field name="description">Request refused</field>