changeset f2c858840b4e in modules/stock_package_shipping_dpd:6.2
details: 
https://hg.tryton.org/modules/stock_package_shipping_dpd?cmd=changeset&node=f2c858840b4e
description:
        Test length of email value

        issue11237
        (grafted from d53e184f945aa81bfb29ff8fcc224307c871b912)
diffstat:

 stock.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 3b7881b7d36a -r f2c858840b4e stock.py
--- a/stock.py  Thu Feb 17 00:39:44 2022 +0100
+++ b/stock.py  Sat Feb 26 11:18:15 2022 +0100
@@ -224,7 +224,7 @@
         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

Reply via email to