[FIX] tools.convert: use tools.ustr() instead of str() on exceptions.
[odoo/odoo.git] / addons / hr_holidays / hr_holidays_data.xml
1 <?xml version="1.0"?>
2 <openerp>
3     <data noupdate="1">
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>
8         </record>
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>
18         </record>
19
20
21         <!-- Casual leave -->
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>
25         </record>
26
27         <!-- Sick leave -->
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>
32         </record>
33
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>
39         </record>
40
41         <!--Unpaid Leave -->
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>
46         </record>
47
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>
53         </record>
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>
58         </record>
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>
64         </record>
65
66     </data>
67 </openerp>