[FIX] hr_recruitment_survey: Start survey, create answers
Use the correct function to create answers before strating the survey. closes odoo/odoo#38960 X-original-commit: e9d40caca6a18f4b77bb5681a9bce3a3aae40cc7 Signed-off-by: jbm-odoo <jbm-odoo@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user