summaryrefslogtreecommitdiff
path: root/addons/hr_holidays/data
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/hr_holidays/data
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/hr_holidays/data')
-rw-r--r--addons/hr_holidays/data/hr_holidays_data.xml54
-rw-r--r--addons/hr_holidays/data/hr_holidays_demo.xml346
-rw-r--r--addons/hr_holidays/data/ir_cron_data.xml14
-rw-r--r--addons/hr_holidays/data/mail_data.xml57
-rw-r--r--addons/hr_holidays/data/report_paperformat.xml18
5 files changed, 489 insertions, 0 deletions
diff --git a/addons/hr_holidays/data/hr_holidays_data.xml b/addons/hr_holidays/data/hr_holidays_data.xml
new file mode 100644
index 00000000..94c2bb01
--- /dev/null
+++ b/addons/hr_holidays/data/hr_holidays_data.xml
@@ -0,0 +1,54 @@
+<?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">Paid Time Off</field>
+ <field name="allocation_type">fixed</field>
+ <field name="leave_validation_type">both</field>
+ <field name="allocation_validation_type">both</field>
+ <field name="color_name">black</field>
+ <field name="leave_notif_subtype_id" ref="mt_leave"/>
+ <field name="allocation_notif_subtype_id" ref="mt_leave_allocation"/>
+ <field name="validity_start" eval="time.strftime('%Y-%m-01')"/>
+ <field name="responsible_id" ref="base.user_admin"/>
+ </record>
+
+ <!-- Sick leave -->
+ <record id="holiday_status_sl" model="hr.leave.type">
+ <field name="name">Sick Time Off</field>
+ <field name="allocation_type">no</field>
+ <field name="color_name">red</field>
+ <field name="validity_start" eval="time.strftime('%Y-01-01')"/>
+ <field name="leave_notif_subtype_id" ref="mt_leave_sick"/>
+ <field name="responsible_id" ref="base.user_admin"/>
+ </record>
+
+ <!-- Compensatory Days -->
+ <record id="holiday_status_comp" model="hr.leave.type">
+ <field name="name">Compensatory Days</field>
+ <field name="allocation_type">fixed_allocation</field>
+ <field name="leave_validation_type">manager</field>
+ <field name="allocation_validation_type">manager</field>
+ <field name="request_unit">hour</field>
+ <field name="color_name">lavender</field>
+ <field name="validity_start" eval="False"/>
+ <field name="leave_notif_subtype_id" ref="mt_leave"/>
+ <field name="responsible_id" ref="base.user_admin"/>
+ </record>
+
+ <!--Unpaid Leave -->
+ <record id="holiday_status_unpaid" model="hr.leave.type">
+ <field name="name">Unpaid</field>
+ <field name="allocation_type">no</field>
+ <field name="leave_validation_type">both</field>
+ <field name="allocation_validation_type">both</field>
+ <field name="color_name">brown</field>
+ <field name="request_unit">hour</field>
+ <field name="unpaid" eval="True"/>
+ <field name="validity_start" eval="time.strftime('%Y-01-01')"/>
+ <field name="leave_notif_subtype_id" ref="mt_leave_unpaid"/>
+ <field name="responsible_id" ref="base.user_admin"/>
+ </record>
+ </data>
+</odoo>
diff --git a/addons/hr_holidays/data/hr_holidays_demo.xml b/addons/hr_holidays/data/hr_holidays_demo.xml
new file mode 100644
index 00000000..e9f10534
--- /dev/null
+++ b/addons/hr_holidays/data/hr_holidays_demo.xml
@@ -0,0 +1,346 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+<data noupdate="1">
+
+ <record id="base.user_demo" model="res.users">
+ <field name="groups_id" eval="[(4, ref('hr_holidays.group_hr_holidays_user'))]"/>
+ </record>
+
+ <!--Leave Type-->
+ <record id="hr_holiday_status_dv" model="hr.leave.type">
+ <field name="name">Parental Leaves</field>
+ <field name="allocation_type">fixed</field>
+ <field name="color_name">brown</field>
+ <field name="leave_validation_type">both</field>
+ <field name="allocation_validation_type">both</field>
+ <field name="validity_start" eval="False"/>
+ <field name="responsible_id" ref="base.user_admin"/>
+ </record>
+
+ <!-- ++++++++++++++++++++++ Mitchell Admin ++++++++++++++++++++++ -->
+
+ <record id="hr_holidays_allocation_cl" model="hr.leave.allocation">
+ <field name="name">Paid Time Off for Mitchell Admin</field>
+ <field name="holiday_status_id" ref="holiday_status_cl"/>
+ <field name="number_of_days">20</field>
+ <field name="employee_id" ref="hr.employee_admin"/>
+ <field name="state">validate</field>
+ </record>
+
+ <record id="hr_holidays_int_tour" model="hr.leave.allocation">
+ <field name="name">International Tour</field>
+ <field name="holiday_status_id" ref="holiday_status_comp"/>
+ <field name="number_of_days">7</field>
+ <field name="employee_id" ref="hr.employee_admin"/>
+ <field name="state">confirm</field>
+ </record>
+ <function model="hr.leave.allocation" name="action_approve">
+ <value eval="ref('hr_holidays.hr_holidays_int_tour')"/>
+ </function>
+
+ <record id="hr_holidays_vc" model="hr.leave.allocation">
+ <field name="name">Summer Vacation</field>
+ <field name="holiday_status_id" ref="holiday_status_unpaid"/>
+ <field name="number_of_days">7</field>
+ <field name="employee_id" ref="hr.employee_admin"/>
+ </record>
+
+ <record id='hr_holidays_cl_allocation' model="hr.leave.allocation">
+ <field name="name">Compensation</field>
+ <field name="holiday_status_id" ref="holiday_status_comp"/>
+ <field name="number_of_days">12</field>
+ <field name="employee_id" ref="hr.employee_admin"/>
+ <field name="state">validate</field>
+ </record>
+
+ <!-- leave request -->
+ <record id="hr_holidays_cl" model="hr.leave">
+ <field name="name">Trip with Family</field>
+ <field name="holiday_status_id" ref="holiday_status_comp"/>
+ <field eval="(datetime.now() + relativedelta(day=1, weekday=0)).strftime('%Y-%m-%d 08:00:00')" name="date_from"/>
+ <field eval="(datetime.now() + relativedelta(day=1, weekday=0) + relativedelta(weekday=2)).strftime('%Y-%m-%d 17:00:00')" name="date_to"/>
+ <field eval="(datetime.now() + relativedelta(day=1, weekday=0)).strftime('%Y-%m-%d 08:00:00')" name="request_date_from"/>
+ <field eval="(datetime.now() + relativedelta(day=1, weekday=0) + relativedelta(weekday=2)).strftime('%Y-%m-%d 17:00:00')" name="request_date_to"/>
+ <field name="employee_id" ref="hr.employee_admin"/>
+ </record>
+
+ <record id="hr_holidays_sl" model="hr.leave">
+ <field name="name">Doctor Appointment</field>
+ <field name="holiday_status_id" ref="holiday_status_sl"/>
+ <field eval="(datetime.now() + relativedelta(day=20, weekday=0)).strftime('%Y-%m-%d 08:00:00')" name="date_from"/>
+ <field eval="(datetime.now() + relativedelta(day=20, weekday=0) + relativedelta(weekday=2)).strftime('%Y-%m-%d 17:00:00')" name="date_to"/>
+ <field eval="(datetime.now() + relativedelta(day=20, weekday=0)).strftime('%Y-%m-%d 08:00:00')" name="request_date_from"/>
+ <field eval="(datetime.now() + relativedelta(day=20, weekday=0) + relativedelta(weekday=2)).strftime('%Y-%m-%d 17:00:00')" name="request_date_to"/>
+ <field name="employee_id" ref="hr.employee_admin"/>
+ <field name="state">confirm</field>
+ </record>
+ <function model="hr.leave" name="action_approve">
+ <value eval="ref('hr_holidays.hr_holidays_sl')"/>
+ </function>
+
+ <record id="hr.employee_al" model="hr.employee">
+ <field name="leave_manager_id" ref="base.user_admin"/>
+ </record>
+ <record id="hr.employee_mit" model="hr.employee">
+ <field name="leave_manager_id" ref="base.user_admin"/>
+ </record>
+ <record id="hr.employee_qdp" model="hr.employee">
+ <field name="leave_manager_id" ref="base.user_admin"/>
+ </record>
+ <record id="hr.employee_niv" model="hr.employee">
+ <field name="leave_manager_id" ref="base.user_admin"/>
+ </record>
+ <record id="hr.employee_jve" model="hr.employee">
+ <field name="leave_manager_id" ref="base.user_admin"/>
+ </record>
+
+ <!-- ++++++++++++++++++++++ Ronnie Hart ++++++++++++++++++++++ -->
+
+
+ <record id="hr_holidays_allocation_cl_al" model="hr.leave.allocation">
+ <field name="name">Paid Time Off for Ronnie Hart</field>
+ <field name="holiday_status_id" ref="holiday_status_cl"/>
+ <field name="number_of_days">20</field>
+ <field name="employee_id" ref="hr.employee_al"/>
+ <field name="state">validate</field>
+ </record>
+
+ <record id="hr_holidays_allocation_pl_al" model="hr.leave.allocation">
+ <field name="name">Parental Leaves</field>
+ <field name="holiday_status_id" ref="hr_holiday_status_dv"/>
+ <field name="number_of_days">10</field>
+ <field name="employee_id" ref="hr.employee_al"/>
+ <field name="state">validate</field>
+ </record>
+
+ <record id="hr_holidays_vc_al" model="hr.leave.allocation">
+ <field name="name">Summer Vacation</field>
+ <field name="holiday_status_id" ref="holiday_status_unpaid"/>
+ <field name="number_of_days">12</field>
+ <field name="employee_id" ref="hr.employee_al"/>
+ <field name="state">validate</field>
+ </record>
+
+ <!-- leave request -->
+ <record id="hr_holidays_cl_al" model="hr.leave">
+ <field name="name">Trip with Friends</field>
+ <field name="holiday_status_id" ref="holiday_status_cl"/>
+ <field eval="time.strftime('%Y-%m-04')" name="date_from"/>
+ <field eval="time.strftime('%Y-%m-10')" name="date_to"/>
+ <field eval="time.strftime('%Y-%m-04')" name="request_date_from"/>
+ <field eval="time.strftime('%Y-%m-10')" name="request_date_to"/>
+ <field name="employee_id" ref="hr.employee_al"/>
+ </record>
+ <function model="hr.leave" name="action_approve">
+ <value eval="ref('hr_holidays.hr_holidays_cl_al')"/>
+ </function>
+
+ <record id="hr_holidays_sl_al" model="hr.leave">
+ <field name="name">Dentist appointment</field>
+ <field name="holiday_status_id" ref="holiday_status_sl"/>
+ <field eval="(datetime.now()+relativedelta(months=1, day=17, weekday=0)).strftime('%Y-%m-%d 08:00:00')" name="date_from"/>
+ <field eval="(datetime.now()+relativedelta(months=1, day=17, weekday=0) + relativedelta(weekday=2)).strftime('%Y-%m-%d 17:00:00')" name="date_to"/>
+ <field eval="(datetime.now()+relativedelta(months=1, day=17, weekday=0)).strftime('%Y-%m-%d 08:00:00')" name="request_date_from"/>
+ <field eval="(datetime.now()+relativedelta(months=1, day=17, weekday=0) + relativedelta(weekday=2)).strftime('%Y-%m-%d 17:00:00')" name="request_date_to"/>
+ <field name="employee_id" ref="hr.employee_al"/>
+ <field name="state">confirm</field>
+ </record>
+ <function model="hr.leave" name="action_approve">
+ <value eval="ref('hr_holidays.hr_holidays_sl_al')"/>
+ </function>
+
+ <!-- ++++++++++++++++++++++ Anita Oliver ++++++++++++++++++++++ -->
+
+ <record id="hr_holidays_allocation_cl_mit" model="hr.leave.allocation">
+ <field name="name">Paid Time Off for Anita Oliver</field>
+ <field name="holiday_status_id" ref="holiday_status_cl"/>
+ <field name="number_of_days">20</field>
+ <field name="employee_id" ref="hr.employee_mit"/>
+ <field name="state">validate</field>
+ </record>
+
+ <record id="hr_holidays_vc_mit" model="hr.leave.allocation">
+ <field name="name">Summer Vacation</field>
+ <field name="holiday_status_id" ref="holiday_status_unpaid"/>
+ <field name="number_of_days">7</field>
+ <field name="employee_id" ref="hr.employee_mit"/>
+ </record>
+
+ <!-- leave request -->
+ <record id="hr_holidays_cl_mit" model="hr.leave">
+ <field name="name">Trip to Paris</field>
+ <field name="holiday_status_id" ref="holiday_status_cl"/>
+ <field eval="time.strftime('%Y-%m-18')" name="date_from"/>
+ <field eval="time.strftime('%Y-%m-24')" name="date_to"/>
+ <field eval="time.strftime('%Y-%m-18')" name="request_date_from"/>
+ <field eval="time.strftime('%Y-%m-24')" name="request_date_to"/>
+ <field name="employee_id" ref="hr.employee_mit"/>
+ </record>
+ <function model="hr.leave" name="action_approve">
+ <value eval="ref('hr_holidays.hr_holidays_cl_mit')"/>
+ </function>
+
+ <record id="hr_holidays_cl_mit_2" model="hr.leave">
+ <field name="name">Trip</field>
+ <field name="holiday_status_id" ref="holiday_status_cl"/>
+ <field eval="(datetime.now() + relativedelta(day=5, weekday=0)).strftime('%Y-%m-%d 08:00:00')" name="date_from"/>
+ <field eval="(datetime.now() + relativedelta(day=5, weekday=0) + relativedelta(weekday=2)).strftime('%Y-%m-%d 17:00:00')" name="date_to"/>
+ <field eval="(datetime.now() + relativedelta(day=5, weekday=0)).strftime('%Y-%m-%d 08:00:00')" name="request_date_from"/>
+ <field eval="(datetime.now() + relativedelta(day=5, weekday=0) + relativedelta(weekday=2)).strftime('%Y-%m-%d 17:00:00')" name="request_date_to"/>
+ <field name="employee_id" ref="hr.employee_mit"/>
+ </record>
+
+ <!-- ++++++++++++++++++++++ Marc Demo ++++++++++++++++++++++ -->
+
+ <record id="hr_holidays_allocation_cl_qdp" model="hr.leave.allocation">
+ <field name="name">Paid Time Off for Marc Demo</field>
+ <field name="holiday_status_id" ref="holiday_status_cl"/>
+ <field name="number_of_days">20</field>
+ <field name="employee_id" ref="hr.employee_qdp"/>
+ <field name="state">validate</field>
+ </record>
+
+ <record id="hr_holidays_vc_qdp" model="hr.leave.allocation">
+ <field name="name">Summer Vacation</field>
+ <field name="holiday_status_id" ref="holiday_status_unpaid"/>
+ <field name="number_of_days">7</field>
+ <field name="employee_id" ref="hr.employee_qdp"/>
+ </record>
+ <function model="hr.leave.allocation" name="action_approve">
+ <value eval="ref('hr_holidays.hr_holidays_vc_qdp')"/>
+ </function>
+
+ <!-- leave request -->
+ <record id="hr_holidays_cl_qdp" model="hr.leave">
+ <field name="name">Sick day</field>
+ <field name="holiday_status_id" ref="holiday_status_sl"/>
+ <field eval="(datetime.now()+relativedelta(months=1, day=3, weekday=0)).strftime('%Y-%m-%d 01:00:00')" name="date_from"/>
+ <field eval="(datetime.now()+relativedelta(months=1, day=3, weekday=0) + relativedelta(weekday=2)).strftime('%Y-%m-%d 23:00:00')" name="date_to"/>
+ <field eval="(datetime.now()+relativedelta(months=1, day=3, weekday=0)).strftime('%Y-%m-%d 01:00:00')" name="request_date_from"/>
+ <field eval="(datetime.now()+relativedelta(months=1, day=3, weekday=0) + relativedelta(weekday=2)).strftime('%Y-%m-%d 23:00:00')" name="request_date_to"/>
+ <field name="employee_id" ref="hr.employee_qdp"/>
+ <field name="state">confirm</field>
+ </record>
+ <function model="hr.leave" name="action_approve">
+ <value eval="ref('hr_holidays.hr_holidays_cl_qdp')"/>
+ </function>
+
+ <record id="hr_holidays_sl_qdp" model="hr.leave">
+ <field name="name">Sick day</field>
+ <field name="holiday_status_id" ref="holiday_status_sl"/>
+ <field eval="(datetime.now() + relativedelta(day=1, weekday=0)).strftime('%Y-%m-%d 01:00:00')" name="date_from"/>
+ <field eval="(datetime.now() + relativedelta(day=1, weekday=0) + relativedelta(days=2)).strftime('%Y-%m-%d 23:00:00')" name="date_to"/>
+ <field eval="(datetime.now() + relativedelta(day=1, weekday=0)).strftime('%Y-%m-%d 01:00:00')" name="request_date_from"/>
+ <field eval="(datetime.now() + relativedelta(day=1, weekday=0) + relativedelta(days=2)).strftime('%Y-%m-%d 23:00:00')" name="request_date_to"/>
+ <field name="employee_id" ref="hr.employee_qdp"/>
+ <field name="state">confirm</field>
+ </record>
+ <function model="hr.leave" name="action_approve">
+ <value eval="ref('hr_holidays.hr_holidays_sl_qdp')"/>
+ </function>
+
+ <!-- ++++++++++++++++++++++ Audrey Peterson ++++++++++++++++++++++ -->
+
+ <record id="hr_holidays_allocation_cl_fpi" model="hr.leave.allocation">
+ <field name="name">Paid Time Off for Audrey Peterson</field>
+ <field name="holiday_status_id" ref="holiday_status_cl"/>
+ <field name="number_of_days">20</field>
+ <field name="employee_id" ref="hr.employee_fpi"/>
+ <field name="state">validate</field>
+ </record>
+
+ <record id="hr_holidays_vc_fpi" model="hr.leave.allocation">
+ <field name="name">Summer Vacation</field>
+ <field name="holiday_status_id" ref="holiday_status_unpaid"/>
+ <field name="number_of_days">7</field>
+ <field name="employee_id" ref="hr.employee_fpi"/>
+ </record>
+
+ <!-- ++++++++++++++++++++++ Olivia ++++++++++++++++++++++ -->
+
+ <record id="hr_holidays_allocation_cl_vad" model="hr.leave.allocation">
+ <field name="name">Paid Time Off for Olivia</field>
+ <field name="holiday_status_id" ref="holiday_status_cl"/>
+ <field name="number_of_days">20</field>
+ <field name="employee_id" ref="hr.employee_niv"/>
+ <field name="state">validate</field>
+ </record>
+
+ <record id="hr_holidays_vc_vad" model="hr.leave.allocation">
+ <field name="name">Summer Vacation</field>
+ <field name="holiday_status_id" ref="holiday_status_unpaid"/>
+ <field name="number_of_days">5</field>
+ <field name="employee_id" ref="hr.employee_niv"/>
+ </record>
+ <function model="hr.leave.allocation" name="action_approve">
+ <value eval="ref('hr_holidays.hr_holidays_vc_vad')"/>
+ </function>
+
+
+ <record id="hr_holidays_cl_vad" model="hr.leave">
+ <field name="name">Trip to London</field>
+ <field name="holiday_status_id" ref="holiday_status_cl"/>
+ <field eval="time.strftime('%Y-%m-09')" name="date_from"/>
+ <field eval="time.strftime('%Y-%m-16')" name="date_to"/>
+ <field eval="time.strftime('%Y-%m-09')" name="request_date_from"/>
+ <field eval="time.strftime('%Y-%m-16')" name="request_date_to"/>
+ <field name="employee_id" ref="hr.employee_niv"/>
+ <field name="state">confirm</field>
+ </record>
+
+ <record id="hr_holidays_sl_vad" model="hr.leave">
+ <field name="name">Doctor Appointment</field>
+ <field name="holiday_status_id" ref="holiday_status_sl"/>
+ <field eval="(datetime.now() + relativedelta(day=25, weekday=0)).strftime('%Y-%m-%d 01:00:00')" name="date_from"/>
+ <field eval="(datetime.now() + relativedelta(day=25, weekday=0) + relativedelta(weekday=2)).strftime('%Y-%m-%d 23:00:00')" name="date_to"/>
+ <field eval="(datetime.now() + relativedelta(day=25, weekday=0)).strftime('%Y-%m-%d 01:00:00')" name="request_date_from"/>
+ <field eval="(datetime.now() + relativedelta(day=25, weekday=0) + relativedelta(weekday=2)).strftime('%Y-%m-%d 23:00:00')" name="request_date_to"/>
+ <field name="employee_id" ref="hr.employee_niv"/>
+ <field name="state">confirm</field>
+ </record>
+ <function model="hr.leave" name="action_approve">
+ <value eval="ref('hr_holidays.hr_holidays_sl_vad')"/>
+ </function>
+
+ <!-- ++++++++++++++++++++++ Kim ++++++++++++++++++++++ -->
+
+ <record id="hr_holidays_allocation_cl_kim" model="hr.leave.allocation">
+ <field name="name">Paid Time Off for Kim</field>
+ <field name="holiday_status_id" ref="holiday_status_cl"/>
+ <field name="number_of_days">20</field>
+ <field name="employee_id" ref="hr.employee_jve"/>
+ <field name="state">confirm</field>
+ </record>
+
+ <record id="hr_holidays_vc_kim" model="hr.leave.allocation">
+ <field name="name">Summer Vacation</field>
+ <field name="holiday_status_id" ref="holiday_status_unpaid"/>
+ <field name="number_of_days">5</field>
+ <field name="employee_id" ref="hr.employee_jve"/>
+ </record>
+
+ <!-- leave request -->
+ <record id="hr_holidays_sl_kim" model="hr.leave">
+ <field name="name">Dentist appointment</field>
+ <field name="holiday_status_id" ref="holiday_status_sl"/>
+ <field eval="(datetime.now()+relativedelta(months=1, day=1, weekday=0)).strftime('%Y-%m-%d 01:00:00')" name="date_from"/>
+ <field eval="(datetime.now()+relativedelta(months=1, day=1, weekday=0)).strftime('%Y-%m-%d 23:00:00')" name="date_to"/>
+ <field eval="(datetime.now()+relativedelta(months=1, day=1, weekday=0)).strftime('%Y-%m-%d 01:00:00')" name="request_date_from"/>
+ <field eval="(datetime.now()+relativedelta(months=1, day=1, weekday=0)).strftime('%Y-%m-%d 23:00:00')" name="request_date_to"/>
+ <field name="employee_id" ref="hr.employee_jve"/>
+ <field name="state">confirm</field>
+ </record>
+
+ <record id="hr_holidays_sl_kim_2" model="hr.leave">
+ <field name="name">Second dentist appointment</field>
+ <field name="holiday_status_id" ref="holiday_status_sl"/>
+ <field eval="(datetime.now()+relativedelta(months=4, day=1, weekday=2)).strftime('%Y-%m-%d 01:00:00')" name="date_from"/>
+ <field eval="(datetime.now()+relativedelta(months=4, day=1, weekday=2)).strftime('%Y-%m-%d 23:00:00')" name="date_to"/>
+ <field eval="(datetime.now()+relativedelta(months=4, day=1, weekday=2)).strftime('%Y-%m-%d 01:00:00')" name="request_date_from"/>
+ <field eval="(datetime.now()+relativedelta(months=4, day=1, weekday=2)).strftime('%Y-%m-%d 23:00:00')" name="request_date_to"/>
+ <field name="employee_id" ref="hr.employee_jve"/>
+ <field name="state">confirm</field>
+ </record>
+
+</data>
+</odoo>
diff --git a/addons/hr_holidays/data/ir_cron_data.xml b/addons/hr_holidays/data/ir_cron_data.xml
new file mode 100644
index 00000000..4dca974e
--- /dev/null
+++ b/addons/hr_holidays/data/ir_cron_data.xml
@@ -0,0 +1,14 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+<odoo>
+
+ <record id="hr_leave_allocation_cron_accrual" model="ir.cron">
+ <field name="name">Accrual Time Off: Updates the number of time off</field>
+ <field name="model_id" ref="model_hr_leave_allocation"/>
+ <field name="state">code</field>
+ <field name="code">model._update_accrual()</field>
+ <field name="interval_number">1</field>
+ <field name="interval_type">days</field>
+ <field name="numbercall">-1</field>
+ <field name="doall" eval="True"/>
+ </record>
+</odoo>
diff --git a/addons/hr_holidays/data/mail_data.xml b/addons/hr_holidays/data/mail_data.xml
new file mode 100644
index 00000000..2beaae12
--- /dev/null
+++ b/addons/hr_holidays/data/mail_data.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <data noupdate="1">
+ <!-- Leave specific activities -->
+ <record id="mail_act_leave_approval" model="mail.activity.type">
+ <field name="name">Time Off Approval</field>
+ <field name="icon">fa-sun-o</field>
+ <field name="res_model_id" ref="hr_holidays.model_hr_leave"/>
+ </record>
+ <record id="mail_act_leave_second_approval" model="mail.activity.type">
+ <field name="name">Time Off Second Approve</field>
+ <field name="icon">fa-sun-o</field>
+ <field name="res_model_id" ref="hr_holidays.model_hr_leave"/>
+ </record>
+
+ <!-- Leave specific activities -->
+ <record id="mail_act_leave_allocation_approval" model="mail.activity.type">
+ <field name="name">Allocation Approval</field>
+ <field name="icon">fa-sun-o</field>
+ <field name="res_model_id" ref="hr_holidays.model_hr_leave_allocation"/>
+ </record>
+ <record id="mail_act_leave_allocation_second_approval" model="mail.activity.type">
+ <field name="name">Allocation Second Approve</field>
+ <field name="icon">fa-sun-o</field>
+ <field name="res_model_id" ref="hr_holidays.model_hr_leave_allocation"/>
+ </record>
+
+ <!-- Holidays-related subtypes for messaging / Chatter -->
+ <record id="mt_leave" model="mail.message.subtype">
+ <field name="name">Time Off</field>
+ <field name="res_model">hr.leave</field>
+ <field name="description">Time Off Request</field>
+ </record>
+ <record id="mt_leave_home_working" model="mail.message.subtype">
+ <field name="name">Home Working</field>
+ <field name="res_model">hr.leave</field>
+ <field name="description">Home Working</field>
+ </record>
+ <record id="mt_leave_sick" model="mail.message.subtype">
+ <field name="name">Sick Time Off</field>
+ <field name="res_model">hr.leave</field>
+ <field name="description">Sick Time Off</field>
+ </record>
+ <record id="mt_leave_unpaid" model="mail.message.subtype">
+ <field name="name">Unpaid Time Off</field>
+ <field name="res_model">hr.leave</field>
+ <field name="description">Unpaid Time Off</field>
+ </record>
+
+ <!-- Allocation-related subtypes for messaging / Chatter -->
+ <record id="mt_leave_allocation" model="mail.message.subtype">
+ <field name="name">Allocation</field>
+ <field name="res_model">hr.leave.allocation</field>
+ <field name="description">Allocation Request</field>
+ </record>
+ </data>
+</odoo>
diff --git a/addons/hr_holidays/data/report_paperformat.xml b/addons/hr_holidays/data/report_paperformat.xml
new file mode 100644
index 00000000..820e43fb
--- /dev/null
+++ b/addons/hr_holidays/data/report_paperformat.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <record id="paperformat_hrsummary" model="report.paperformat">
+ <field name="name">Time Off Summary</field>
+ <field name="default" eval="True"/>
+ <field name="format">custom</field>
+ <field name="page_height">297</field>
+ <field name="page_width">210</field>
+ <field name="orientation">Landscape</field>
+ <field name="margin_top">30</field>
+ <field name="margin_bottom">23</field>
+ <field name="margin_left">5</field>
+ <field name="margin_right">5</field>
+ <field name="header_line" eval="False"/>
+ <field name="header_spacing">20</field>
+ <field name="dpi">90</field>
+ </record>
+</odoo>