Break loop when phone and email are found

issue10538
review367201002
This commit is contained in:
Cédric Krier committed 2021-07-22 00:04:00 +02:00
1 parent 2ac0484ff2
commit 9a47b1ebc2
1 file changed
+2
+2
View File
@@ -221,6 +221,8 @@ class CreateDPDShipping(Wizard):
phone = mechanism.value
if mechanism.type == 'email' and not email:
email = mechanism.value
if phone and email:
break
if phone:
shipping_party['phone'] = phone[:30]
if email: