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

        issue7914
        review340511008
diffstat:

 account.py |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r 3694b31ca4e5 -r efb5fe29e90d account.py
--- a/account.py        Mon May 02 17:17:26 2022 +0200
+++ b/account.py        Mon Sep 19 21:25:55 2022 +0200
@@ -55,9 +55,9 @@
         'required': Bool(Eval('chorus_login')),
         }
 
-    chorus_login = fields.MultiValue(fields.Char("Chorus Login"))
+    chorus_login = fields.MultiValue(fields.Char("Chorus Login", strip=False))
     chorus_password = fields.MultiValue(fields.Char(
-            "Chorus Password", states=_states))
+            "Chorus Password", strip=False, states=_states))
     chorus_service = fields.MultiValue(fields.Selection([
                 (None, ""),
                 ('service-qualif', "Qualification"),
@@ -80,8 +80,8 @@
     "Account Credential Chorus"
     __name__ = 'account.credential.chorus'
 
-    chorus_login = fields.Char("Login")
-    chorus_password = fields.Char("Password")
+    chorus_login = fields.Char("Login", strip=False)
+    chorus_password = fields.Char("Password", strip=False)
     chorus_service = fields.Selection([
             (None, ""),
             ('service-qualif', "Qualification"),
@@ -132,7 +132,7 @@
                     ['posted'])),
             ])
     syntax = fields.Selection('get_syntaxes', "Syntax", required=True)
-    number = fields.Char("Number", readonly=True)
+    number = fields.Char("Number", readonly=True, strip=False)
     date = fields.Date("Date", readonly=True)
 
     @classmethod

Reply via email to