Monday, March 23, 2026
1 change · 18.0
Enhancements to existing features
This update allows employees to create leave requests even when a payroll record exists for that period. Previously, leave creation was blocked if payroll was validated. This change relaxes the rules, enabling more flexible leave management while maintaining accurate payroll calculations, specifically addressing scenarios related to Swissdec payroll impact.
Original PR description
Currently we block leave creation if the employee has a validated payslip in that period. In this commit we relax the constraint in the following way, we will allow to put the leave if: - `l10n_ch_swissdec_payroll_impact` is False - `l10n_ch_continued_pay_percentage` and `l10n_ch_disability_percentage` are BOTH 100% if `l10n_ch_swissdec_payroll_impact` is True - `l10n_ch_swissdec_work_interruption` cannot be True in both cases task-5948505 Forward-Port-Of: odoo/enterprise#107847