changeset c2d846d99cc9 in modules/currency:default
details: https://hg.tryton.org/modules/currency?cmd=changeset&node=c2d846d99cc9
description:
        Apply rate decimal configuration also to field of rate model

        issue10266
diffstat:

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

diffs (13 lines):

diff -r f2c1a362b15e -r c2d846d99cc9 currency.py
--- a/currency.py       Tue Apr 13 01:47:05 2021 +0200
+++ b/currency.py       Tue Apr 13 10:57:33 2021 +0200
@@ -253,7 +253,8 @@
     __name__ = 'currency.currency.rate'
     date = fields.Date('Date', required=True, select=True,
         help="From when the rate applies.")
-    rate = fields.Numeric('Rate', digits=(12, 6), required=1,
+    rate = fields.Numeric(
+        "Rate", digits=(rate_decimal * 2, rate_decimal), required=1,
         help="The floating exchange rate used to convert the currency.")
     currency = fields.Many2One('currency.currency', 'Currency',
             ondelete='CASCADE',

Reply via email to