summaryrefslogtreecommitdiff
path: root/addons/hr_payroll/data/hr_payroll_data.xml
diff options
context:
space:
mode:
authorLucas Lefèvre <lul@odoo.com>2019-01-07 08:06:45 +0000
committerYannick Tivisse <yti@odoo.com>2019-01-15 16:04:21 +0000
commit75ef4686ffd7b0124fb747a43c63fe8292aa037e (patch)
treeece8e8c2a97cdaaea437cdcbf1ec4b973efbce1d /addons/hr_payroll/data/hr_payroll_data.xml
parente6c0a326d66ce509a0934476d3c0639361b563a2 (diff)
[IMP] hr_payroll: Add notion of full time/part time on resource calendar
Purpose ======= In order to be able to manage payroll, we need to know if a resource calendar is a full time or a part time. For instance, in belgium, 23h a week is a full time for a teacher but in cp 200 it is 38h. In belgium every employee can take a parental leave in part time but he cannot take it in part time if they are not full time. Having a field indicating if the contract is full time or not is useful for computing salary rules. Specification ============= On the calendar model - Display a computed field with the number of hours in the calendar - Display a field with the required number of hours to be full time - Display a computed checkbox, ticked if full time or not On the contract model - Add a related on these fields, to ease the access on the salary rules computation. closes odoo/odoo#30034
Diffstat (limited to 'addons/hr_payroll/data/hr_payroll_data.xml')
-rw-r--r--addons/hr_payroll/data/hr_payroll_data.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/addons/hr_payroll/data/hr_payroll_data.xml b/addons/hr_payroll/data/hr_payroll_data.xml
index 87d00a5c6fc..72c2b198699 100644
--- a/addons/hr_payroll/data/hr_payroll_data.xml
+++ b/addons/hr_payroll/data/hr_payroll_data.xml
@@ -1,6 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="0">
+
+ <record id="resource.resource_calendar_std" model="resource.calendar">
+ <field name="full_time_required_hours">40</field>
+ </record>
+
+ <record id="resource.resource_calendar_std_35h" model="resource.calendar">
+ <field name="full_time_required_hours">35</field>
+ </record>
+
+ <record id="resource.resource_calendar_std_38h" model="resource.calendar">
+ <field name="full_time_required_hours">38</field>
+ </record>
+
<record id="contrib_register_employees" model="hr.contribution.register">
<field name="name">Employees</field>
<field name="partner_id" eval="False"/>