Friday, July 17, 2026
1 change · saas-19.2
Code cleanup and technical improvements
This update removes duplicated internal logic for handling flexible employee leave in planning, because the same behavior is already provided by a related holidays module. It reduces maintenance risk without changing the expected user experience.
Original PR description
After commit https://github.com/odoo/enterprise/commit/e0b126cb1ec80743ef06784e230320a1c50041e9, `_handle_flexible_leave_interval` is already implemented in `hr_holidays_gantt` and covers the same case previously handled in `planning_holidays`. https://github.com/odoo/enterprise/blob/7ed917c1de11e29257a726efd4dafe403b9efba1/hr_holidays_gantt/models/resource_calendar.py#L17-L20 Since `planning_holidays` depends on `hr_holidays_gantt`, the duplicate implementation in `planning_holidays` is no longer necessary. **opw-6243778** Forward-Port-Of: odoo/enterprise#124322 Forward-Port-Of: odoo/enterprise#119229