Monday, October 21, 2024
2 changes · saas-17.2
Resolved issues and error corrections
This update fixes an error that could occur when opening an employee form view in the HR app. It restores reliable access to HR employee records after a recent change introduced the issue.
Original PR description
Fix an error introcuded by commit 2773ab7ff5855a8345eabaf52a3bb5f8b1b80235
This fix corrects how the HR app checks a user's group permissions when opening employee forms. It helps ensure the right employee form view or action is shown based on user access rights, avoiding errors caused by checking permissions on the wrong record type.
Original PR description
With this commit; the function previously called user_has_group is replaced by the method has_group and need to be called with res.users model not hr.employee model. task-4262917 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr