changeset 8a7972c1e76e in modules/stock_package_shipping_dpd:default
details: 
https://hg.tryton.org/modules/stock_package_shipping_dpd?cmd=changeset&node=8a7972c1e76e
description:
        Add option to remove leading and trailing white spaces from char

        issue7914
        review340511008
diffstat:

 carrier.py |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (22 lines):

diff -r eba2938ae882 -r 8a7972c1e76e carrier.py
--- a/carrier.py        Mon May 02 17:59:03 2022 +0200
+++ b/carrier.py        Mon Sep 19 21:25:55 2022 +0200
@@ -20,14 +20,14 @@
     __name__ = 'carrier.credential.dpd'
 
     company = fields.Many2One('company.company', 'Company')
-    user_id = fields.Char('User ID', required=True)
-    password = fields.Char('Password', required=True)
+    user_id = fields.Char('User ID', required=True, strip=False)
+    password = fields.Char('Password', required=True, strip=False)
     server = fields.Selection([
             ('testing', 'Testing'),
             ('production', 'Production'),
             ], 'Server')
-    depot = fields.Char('Depot', readonly=True)
-    token = fields.Char('Token', readonly=True)
+    depot = fields.Char('Depot', readonly=True, strip=False)
+    token = fields.Char('Token', readonly=True, strip=False)
 
     @classmethod
     def default_server(cls):

Reply via email to