Daily updates from Odoo
Thursday, September 18, 2025
2 changes · saas-18.2
Resolved issues and error corrections
This update fixes a failing automated test related to Hong Kong payroll leave generation after a prior system change. It helps keep payroll quality checks reliable and reduces the risk of future payroll regressions reaching users.
Original PR description
Explanation: _generate_leave method is updated in saas-18.1. build_error-229902
Payroll users with Administrator access can now cancel completed payslips as intended. This prevents unnecessary errors and lets payroll teams manage corrections without needing full system administrator rights.
Original PR description
steps to reproduce: ------------------- 1. Install payroll 2. Create a user and grant "Administrator" access to Payroll. 3. Log in as the new user and try to cancel a 'Done' payslip. issue: ------ A UserError is raised: "Cannot cancel a payslip that is done." observation: ------------ A user with Payroll "Administrator" access is unable to cancel a payroll payslip cause of the issue: ------------------- During cancellation, the system checks whether the user is "Admin" instead of verifying if the user has Payroll "Administrator" access. https://github.com/odoo/enterprise/blob/13832d80570956e504e1c09f41acbeb0bc4baedc/hr_payroll/models/hr_payslip.py#L509-L513 solution: ---------- Check that the user has Payroll "Administrator" access. opw-5040029 Forward-Port-Of: odoo/enterprise#93831