Friday, April 18, 2025
1 change · saas-17.4
Resolved issues and error corrections
A test for timesheet and time off integration now uses the correct user permissions when validating time off. This helps keep automated checks reliable and prevents false failures during development and release validation.
Original PR description
Followup to #83427 as I missed a second issue in the test: `action_validate` can only be performed by a time off officer. So set that on the current user. Also `self.Requests.env.user` is the same as `self.env.user` so don't bother with the unnecessary indirection. https://runbot.odoo.com/odoo/error/164047