Friday, October 15, 2021
1 change · master
Code cleanup and technical improvements
The Time Off calendar code was reorganized to reduce duplication and make future changes easier to deliver. This supports better maintainability for calendar views used from employee records without changing the core business process.
Original PR description
task- 2643692 required customizing the calendar view to display a calendar from the employee form via the Time Off smart button. As the changes took place after the freeze of the saas-14.5 branch, it was not possible to split the time_off_calendar.js file into its different components to have them being re-used in time_off_calendar_employee.js file. Subsequently, some code duplication exists between the two files and makes it hard to maintain. This commit is for making the custom calendar components more modular and more maintainable. task-2661142 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr