From 43d239ebcb0fc3984b40fef4d9f99c3dd4f4e780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 26 Feb 2022 11:18:15 +0100 Subject: [PATCH] Test length of email value issue11237 --- stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock.py b/stock.py index ba8aed293d..5bf469053a 100644 --- a/stock.py +++ b/stock.py @@ -226,7 +226,7 @@ class CreateDPDShipping(Wizard): if phone: shipping_party['phone'] = phone.value[:30] email = party.contact_mechanism_get('email') - if email and len(email) <= 50: + if email and len(email.value) <= 50: shipping_party['email'] = email.value return shipping_party