From 0d424c41c8a79d44344b1e796e02d7dee5d820c6 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Wed, 6 Jul 2022 08:59:05 +0000 Subject: [PATCH] [FIX] hr_recruitment: make interviewer field tracked The interviewer field was added by #78622, and adds access control for `hr.applicant` based on whoever was assigned as the interviewer. Due to the access control implications, it's useful to track the value of this field in the applicant history. closes odoo/odoo#95432 X-original-commit: 4b9447972009aa56ddacdba8eba4f7686537a753 Signed-off-by: Yannick Tivisse (yti) --- addons/hr_recruitment/models/hr_recruitment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_recruitment/models/hr_recruitment.py b/addons/hr_recruitment/models/hr_recruitment.py index 18a4cf2f575..d1c0f98db98 100644 --- a/addons/hr_recruitment/models/hr_recruitment.py +++ b/addons/hr_recruitment/models/hr_recruitment.py @@ -192,7 +192,7 @@ class Applicant(models.Model): medium_id = fields.Many2one(ondelete='set null') source_id = fields.Many2one(ondelete='set null') interviewer_id = fields.Many2one( - 'res.users', string='Interviewer', index=True, + 'res.users', string='Interviewer', index=True, tracking=True, domain="[('share', '=', False), ('company_ids', 'in', company_id)]") @api.onchange('job_id')