From 2dcae269114d9413ffadd7296dd895c76a0682f2 Mon Sep 17 00:00:00 2001 From: Kevin Baptiste Date: Thu, 19 May 2022 07:41:08 +0000 Subject: [PATCH] [FIX] hr_recruitment: allow Interviewers to use Activities The Interviewers couldn't mark Activities as done, as they didn't have access to the mail.message on the application. closes odoo/odoo#92063 Taskid: 2857423 X-original-commit: 4a5941eed902927e11605e94b7afcfc227bece9d Signed-off-by: Kevin Baptiste --- .../hr_recruitment/security/hr_recruitment_security.xml | 8 +++++++- addons/hr_recruitment/static/src/scss/hr_applicant.scss | 3 +-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/addons/hr_recruitment/security/hr_recruitment_security.xml b/addons/hr_recruitment/security/hr_recruitment_security.xml index 1e14be0ae04..77c469c6d8e 100644 --- a/addons/hr_recruitment/security/hr_recruitment_security.xml +++ b/addons/hr_recruitment/security/hr_recruitment_security.xml @@ -53,7 +53,13 @@ Interviewer: No Applicant Chatter - [('model', '!=', 'hr.applicant')] + [ + '|', + ('model', '!=', 'hr.applicant'), + '&', + ('model', '=', 'hr.applicant'), + ('mail_activity_type_id', '!=', False) + ] diff --git a/addons/hr_recruitment/static/src/scss/hr_applicant.scss b/addons/hr_recruitment/static/src/scss/hr_applicant.scss index be9058299a4..a41f67d9e6b 100644 --- a/addons/hr_recruitment/static/src/scss/hr_applicant.scss +++ b/addons/hr_recruitment/static/src/scss/hr_applicant.scss @@ -1,8 +1,7 @@ .o_applicant_interviewer_form { .o_ChatterTopbar_buttonSendMessage, .o_ChatterTopbar_buttonLogNote, - .o_ChatterTopbar_buttonScheduleActivity, - .o_MessageList { + .o_MessageList_empty { display: none; } }