Permalink
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.
  • Loading branch information...
tde-banana-odoo committed Dec 19, 2018
1 parent 3f90a9d commit bfe700b367daee3fa7a807a6e519dfe56add6080
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/hr_recruitment_survey/models/hr_applicant.py
@@ -6,7 +6,7 @@
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 comments on commit bfe700b

Please sign in to comment.