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

        issue7914
        review340511008
diffstat:

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

diffs (21 lines):

diff -r a905de74ea98 -r 78fbe23795c1 product.py
--- a/product.py        Fri Sep 16 23:37:38 2022 +0200
+++ b/product.py        Mon Sep 19 21:25:55 2022 +0200
@@ -61,7 +61,7 @@
     code_readonly = fields.Function(
         fields.Boolean("Code Readonly"), 'get_code_readonly')
     code = fields.Char(
-        "Code", select=True,
+        "Code", select=True, strip='leading',
         states={
             'readonly': Eval('code_readonly', False),
             })
@@ -355,7 +355,7 @@
                 }),
         'on_change_with_prefix_code')
     suffix_code = fields.Char(
-        "Suffix Code",
+        "Suffix Code", strip='trailing',
         states={
             'readonly': Eval('code_readonly', False),
             },

Reply via email to