[IMP] survey_contact_generation:
generate contacts each time for surveys
This commit is contained in:
@@ -61,7 +61,7 @@ class SurveyUserInput(models.Model):
|
|||||||
def _mark_done(self):
|
def _mark_done(self):
|
||||||
"""Generate the contact when the survey is submitted"""
|
"""Generate the contact when the survey is submitted"""
|
||||||
for user_input in self.filtered(
|
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()
|
vals = user_input._prepare_partner()
|
||||||
partner = False
|
partner = False
|
||||||
|
Reference in New Issue
Block a user