Thursday, March 19, 2026
1 change · 17.0
Enhancements to existing features
This update relaxes a previous restriction, allowing employees to create leave requests even if payroll data is present for the period. This change ensures greater flexibility in managing employee time off, particularly in scenarios where continued pay percentages are fully utilized. It simplifies the process for creating leave while maintaining accurate payroll calculations.
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