From 652d235c8dff4e7a8ee24ce8cd2c9fbc88c95278 Mon Sep 17 00:00:00 2001 From: mafo-odoo Date: Thu, 2 Jun 2022 11:48:44 +0000 Subject: [PATCH] [FIX] hr_timesheet : allow project managers to handle timesheets Steps to reproduce: - Install project and timesheet - Create a project with settings "invited employees only" - Create a user with administrator project right (and non admin rights for timesheet) - Create a task in the new project - Try to generate a timesheet on the task with the new user (the user has to not follow the task) Current behavior: This generate an access error due to not respecting some rules Expected behavior: The timesheet is created Explanation: The project admin should be able to handle any timesheet that is linked to a project to do so we add its groupto the rule that gives access to the model analytic.model_account_analytic_line if there is a project_id. opw-2861042 closes odoo/odoo#94102 X-original-commit: 70a0ad280e0c8a62f24d6943be082298fa98e443 Signed-off-by: Laurent Stukkens (ltu) --- addons/hr_timesheet/security/hr_timesheet_security.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_timesheet/security/hr_timesheet_security.xml b/addons/hr_timesheet/security/hr_timesheet_security.xml index f58b7fa4df0..9f105179167 100644 --- a/addons/hr_timesheet/security/hr_timesheet_security.xml +++ b/addons/hr_timesheet/security/hr_timesheet_security.xml @@ -79,7 +79,7 @@ account.analytic.line.timesheet.manager [('project_id', '!=', False)] - +