Create a new Interviewer access rights. This right is automatically given to users that are added as Interviewers on a Job Position or on an Application. An interviewer can only access applications they are interviewer of the job or the application itself, the chatter is disabled for them as it might contain some sensitive information (salary details, contract link, etc.) closes odoo/odoo#78622 Taskid: 2669730 Related: odoo/enterprise#21778 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
15 lines
453 B
Python
15 lines
453 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import models
|
|
|
|
|
|
class IrUiMenu(models.Model):
|
|
_inherit = 'ir.ui.menu'
|
|
|
|
def _load_menus_blacklist(self):
|
|
res = super()._load_menus_blacklist()
|
|
if self.env.user.has_group('hr_recruitment.group_hr_recruitment_interviewer'):
|
|
res.append(self.env.ref('hr_recruitment.menu_hr_job_position').id)
|
|
return res
|