[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 <kba@odoo.com>
This commit is contained in:
Kevin Baptiste
2022-05-23 15:12:54 +02:00
parent dcb0eef401
commit 2dcae26911
2 changed files with 8 additions and 3 deletions
@@ -53,7 +53,13 @@
<record id="mail_message_interviewer_rule" model="ir.rule">
<field name="name">Interviewer: No Applicant Chatter</field>
<field name="model_id" ref="mail.model_mail_message"/>
<field name="domain_force">[('model', '!=', 'hr.applicant')]</field>
<field name="domain_force">[
'|',
('model', '!=', 'hr.applicant'),
'&amp;',
('model', '=', 'hr.applicant'),
('mail_activity_type_id', '!=', False)
]</field>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_unlink" eval="False"/>
@@ -1,8 +1,7 @@
.o_applicant_interviewer_form {
.o_ChatterTopbar_buttonSendMessage,
.o_ChatterTopbar_buttonLogNote,
.o_ChatterTopbar_buttonScheduleActivity,
.o_MessageList {
.o_MessageList_empty {
display: none;
}
}