From 9a47b1ebc2864a10fd7f8a95957bb7cfbf3416bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 22 Jul 2021 00:04:00 +0200 Subject: [PATCH] Break loop when phone and email are found issue10538 review367201002 --- stock.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stock.py b/stock.py index 7340756f29..de81c66c3f 100644 --- a/stock.py +++ b/stock.py @@ -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: