[IMP] survey_contact_generation:
prevent doublon search for contact without email in user_input
This commit is contained in:
@@ -69,6 +69,10 @@ class SurveyUserInput(models.Model):
|
|||||||
firstname = vals.get("firstname")
|
firstname = vals.get("firstname")
|
||||||
lastname = vals.get("lastname")
|
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
|
#search if partner exists with same email, firstname and lastname depending on submitted data
|
||||||
doublon_domain = []
|
doublon_domain = []
|
||||||
if email:
|
if email:
|
||||||
|
Reference in New Issue
Block a user