changeset 053c2e6c30e7 in modules/stock_package_shipping_dpd:default
details:
https://hg.tryton.org/modules/stock_package_shipping_dpd?cmd=changeset&node=053c2e6c30e7
description:
Break loop when phone and email are found
issue10538
review367201002
diffstat:
stock.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r 08a1e73cbc20 -r 053c2e6c30e7 stock.py
--- a/stock.py Sun Jul 04 17:54:48 2021 +0200
+++ b/stock.py Thu Jul 22 00:04:00 2021 +0200
@@ -221,6 +221,8 @@
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: