From 7bc095e265673f605893d07e239d50aa4db2b294 Mon Sep 17 00:00:00 2001 From: clementthomas Date: Wed, 25 Oct 2023 14:26:33 +0200 Subject: [PATCH] [IMP] survey_contact_generation: generate contacts each time for surveys --- survey_contact_generation/models/survey_user_input.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/survey_contact_generation/models/survey_user_input.py b/survey_contact_generation/models/survey_user_input.py index 7f54edf..b47ca1e 100644 --- a/survey_contact_generation/models/survey_user_input.py +++ b/survey_contact_generation/models/survey_user_input.py @@ -61,7 +61,7 @@ class SurveyUserInput(models.Model): def _mark_done(self): """Generate the contact when the survey is submitted""" for user_input in self.filtered( - lambda r: r.survey_id.generate_contact and not self.partner_id + lambda r: r.survey_id.generate_contact# and not self.partner_id #uncomment to avoid contact generation several times ): vals = user_input._prepare_partner() partner = False