summaryrefslogtreecommitdiff
path: root/addons/resource/models
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/resource/models
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/resource/models')
-rw-r--r--addons/resource/models/resource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/resource/models/resource.py b/addons/resource/models/resource.py
index 0caafc4e88c..54575a6c354 100644
--- a/addons/resource/models/resource.py
+++ b/addons/resource/models/resource.py
@@ -179,7 +179,7 @@ class ResourceCalendar(models.Model):
'resource.calendar.leaves', 'calendar_id', 'Global Leaves',
domain=[('resource_id', '=', False)]
)
- hours_per_day = fields.Float("Average hour per day", default=HOURS_PER_DAY,
+ hours_per_day = fields.Float("Average Hour per Day", default=HOURS_PER_DAY,
help="Average hours per day a resource is supposed to work with this calendar.")
tz = fields.Selection(
_tz_get, string='Timezone', required=True,