Thursday, April 2, 2020
2 changes · master
Enhancements to existing features
New work schedules now use the company's default calendar as their starting template instead of always using a generic 40-hour week. Personal calendars are also linked with company-wide time off, helping keep employee availability and absences more consistent across HR and timesheet planning.
Original PR description
Before this commit, all new created calendar attendances used "40 hours" as default template. With this commit, new generated calendar attendance will use the company's default calendar as the template This commit also link specific personal calendar with the company global time off. TaskId: 2181651 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Payroll now offers a configuration menu for working time and updates work entries automatically when company-wide or global time off changes. When different types of leave overlap, payroll applies a clear priority order so employee work entries are generated more consistently.
Original PR description
- Add a new menu in Payroll/Configuration to setup the working time - Rewrite the CRUD operations for resource_calendar_leave, so the work entries will be updated dynamically when Company global leaves or global leaves are modified - Personal leaves (hr_leave) and global leave (resource_calendar_leave) can overlap. And the work entries are generated by the priority as `Company Global Time Off` > `Global Time Off` > `Personal Leave` TaskId: 2181651