Monday, February 2, 2026
1 change · saas-19.1
Resolved issues and error corrections
This update fixes a critical issue where payroll sheet computations continued even when errors were detected on payslips. Now, the system will raise an alert when errors occur, providing clearer guidance on resolving issues like missing contracts. This ensures accurate payroll processing and prevents incorrect calculations.
Original PR description
Bug: When there is an issue on a payslip with an error level, and we try to compute the sheet, the sheet is computed. Instead of computing, it should raise and the message should specify what errors need to be resolved first. Cause: When computing the sheet, we were calling the self._get_error_message() without using the result, which is a string. Fix: Actually raise a ValidationError and use the result of self._get_error_message() for the error message. Introducing the raise brought other problems because some code supposed to fail was running seamlessly fine. But now, the raise is called and those needed to be solved as well. The issue raised multiple times is the "No contract in the payslip period". Task: 5153497 Forward-Port-Of: odoo/enterprise#104137