diff --git a/addons/hr_recruitment_survey/models/hr_applicant.py b/addons/hr_recruitment_survey/models/hr_applicant.py index 99496a3f9ff..c778efa0121 100644 --- a/addons/hr_recruitment_survey/models/hr_applicant.py +++ b/addons/hr_recruitment_survey/models/hr_applicant.py @@ -13,7 +13,7 @@ class Applicant(models.Model): self.ensure_one() # create a response and link it to this applicant if not self.response_id: - response = self.env['survey.user_input'].create({'survey_id': self.survey_id.id, 'partner_id': self.partner_id.id}) + response = self.survey_id._create_answer(partner=self.partner_id) self.response_id = response.id else: response = self.response_id