Test length of email value

issue11237
This commit is contained in:
Cédric Krier committed 2022-02-26 11:18:15 +01:00
1 parent 1c38d3dd3f
commit 43d239ebcb
1 file changed
+1 -1
+1 -1
View File
@@ -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