From 6357e6dd3a8bbdd989bbe82b1b7b1c06438eee29 Mon Sep 17 00:00:00 2001 From: "Sina Chaichi Maleki (cmsi)" Date: Thu, 24 Aug 2023 17:04:09 +0200 Subject: [PATCH] [IMP] hr_recruitment: refine user access to job positions view Previously, a user could be a recruiter but not an interviewer. With the new changes, the recruiter role is also an interviewer. On the job positions kanban view, the functionality of the "X to Recruit" link depended on whether a user was an interviewer or not. Now, since an admin is also an interviewer, they only have interviewer access and can only see the application list, which is not desired. In this commit, we've changed the condition from being an interviewer to being a recruiter. Consequently, the admin can navigate to the job position edit form while interviewers only see the application list. Users with neither role won't see the kanban view at all, so there's no concern regarding that. closes odoo/odoo#138628 Task: #3471557 X-original-commit: 06712c3a2c34ece2dc1b93180a270da46e7e5966 Signed-off-by: Yannick Tivisse (yti) --- addons/hr_recruitment/views/hr_job_views.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/hr_recruitment/views/hr_job_views.xml b/addons/hr_recruitment/views/hr_job_views.xml index 67cd80c93e6..7afccab14b2 100644 --- a/addons/hr_recruitment/views/hr_job_views.xml +++ b/addons/hr_recruitment/views/hr_job_views.xml @@ -100,10 +100,10 @@