[IMP] survey_contact_generation:

prevent doublon search for contact without email in user_input
This commit is contained in:
clementthomas
2024-12-04 11:56:49 +01:00
parent 991dab5c5b
commit 33cd943e2c

View File

@@ -69,6 +69,10 @@ class SurveyUserInput(models.Model):
firstname = vals.get("firstname")
lastname = vals.get("lastname")
# check doublon only if email send
if not email:
continue
#search if partner exists with same email, firstname and lastname depending on submitted data
doublon_domain = []
if email: