changeset c3c7cf3e6ba5 in modules/currency:default
details: https://hg.tryton.org/modules/currency?cmd=changeset&node=c3c7cf3e6ba5
description:
Add option to remove leading and trailing white spaces from char
issue7914
review340511008
diffstat:
currency.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 898722955ad6 -r c3c7cf3e6ba5 currency.py
--- a/currency.py Fri Aug 26 18:12:02 2022 +0200
+++ b/currency.py Mon Sep 19 21:25:55 2022 +0200
@@ -35,7 +35,8 @@
__name__ = 'currency.currency'
name = fields.Char('Name', required=True, translate=True,
help="The main identifier of the currency.")
- symbol = fields.Char('Symbol', size=10, required=True,
+ symbol = fields.Char(
+ "Symbol", size=10, required=True, strip=False,
help="The symbol used for currency formating.")
code = fields.Char('Code', size=3, required=True,
help="The 3 chars ISO currency code.")