details: https://code.tryton.org/tryton/commit/71b1a6cef809
branch: default
user: Nicolas Évrard <[email protected]>
date: Thu Oct 09 12:36:54 2025 +0200
description:
Clarify the documentation about digits
diffstat:
trytond/doc/ref/fields.rst | 4 ++--
trytond/trytond/model/fields/float.py | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 03757ba2dd9d -r 71b1a6cef809 trytond/doc/ref/fields.rst
--- a/trytond/doc/ref/fields.rst Fri Sep 26 08:45:49 2025 +0200
+++ b/trytond/doc/ref/fields.rst Thu Oct 09 12:36:54 2025 +0200
@@ -424,9 +424,9 @@
A tuple of two :py:class:`integers <int>`.
- The first integer defines the total of numbers in the integer part.
+ The first integer defines the number of figures in the integer part.
- The second integer defines the total of numbers in the decimal part.
+ The second integer defines the number of figures in the decimal part.
Integers can be replaced by a :class:`~trytond.pyson.PYSON` statement.
If digits is ``None`` or any values of the tuple is ``None``, no validation
diff -r 03757ba2dd9d -r 71b1a6cef809 trytond/trytond/model/fields/float.py
--- a/trytond/trytond/model/fields/float.py Fri Sep 26 08:45:49 2025 +0200
+++ b/trytond/trytond/model/fields/float.py Thu Oct 09 12:36:54 2025 +0200
@@ -36,8 +36,8 @@
on_change=None, on_change_with=None, depends=None,
context=None, loading='eager'):
'''
- :param digits: a list of two integers defining the total
- of digits and the number of decimals of the float.
+ :param digits: a tuple of two integers defining the number of figures
+ of the integer and decimal part.
'''
super().__init__(string=string, help=help,
required=required, readonly=readonly, domain=domain, states=states,