[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) <yti@odoo.com>
This commit is contained in:
Olivier Dony
2022-07-11 15:02:49 +02:00
parent 90480ce2d1
commit 0d424c41c8
@@ -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')