-
- Downloads
[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
Showing
- addons/hr_payroll/data/hr_payroll_data.xml 13 additions, 0 deletionsaddons/hr_payroll/data/hr_payroll_data.xml
- addons/hr_payroll/models/hr_contract.py 4 additions, 0 deletionsaddons/hr_payroll/models/hr_contract.py
- addons/hr_payroll/models/resource.py 17 additions, 2 deletionsaddons/hr_payroll/models/resource.py
- addons/hr_payroll/views/resource_views.xml 19 additions, 2 deletionsaddons/hr_payroll/views/resource_views.xml
- addons/resource/models/resource.py 1 addition, 1 deletionaddons/resource/models/resource.py
- addons/resource/views/resource_views.xml 7 additions, 5 deletionsaddons/resource/views/resource_views.xml
Please register or sign in to comment