Skip to content
Snippets Groups Projects
Commit 812d1ec0 authored by Thibault Delavallée's avatar Thibault Delavallée
Browse files

[FIX] hr_recruitment_survey: set related survey readonly on applicant

Otherwise you might change the survey used on the job without knowing it.
Survey on applicant is just there for information / action purpose, not
configure the job itself.

This commit is linked to task ID 1911586 and PR #28986.
parent a8a6729e
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ from odoo import api, fields, models
class Applicant(models.Model):
_inherit = "hr.applicant"
survey_id = fields.Many2one('survey.survey', related='job_id.survey_id', string="Survey", readonly=False)
survey_id = fields.Many2one('survey.survey', related='job_id.survey_id', string="Survey", readonly=True)
response_id = fields.Many2one('survey.user_input', "Response", ondelete="set null", oldname="response")
@api.multi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment