Enforce digits length on Rounding Precision on Unit of Measure

issue7064
review40961002
This commit is contained in:
Cédric Krier committed 2018-02-07 01:14:27 +01:00
1 parent dc8d702be0
commit bbbeebb1ac
2 files changed
+5 -2

No files matched your search

+2
View File
@@ -1,3 +1,5 @@
* Enforce digits length on Rounding Precision on Unit of Measure
Version 4.6.0 - 2017-10-30
* Bug fixes (see mercurial logs for details)
* Show all products by category
+3 -2
View File
@@ -46,8 +46,9 @@ class Uom(ModelSQL, ModelView):
required=True, depends=DEPENDS,
help=('The coefficient for the formula:\n'
'coef (base unit) = 1 (this unit)'))
rounding = fields.Float('Rounding Precision', digits=(12, 12),
required=True, states=STATES, depends=DEPENDS,
rounding = fields.Float('Rounding Precision',
digits=(12, Eval('digits', 12)),
required=True, states=STATES, depends=DEPENDS + ['digits'],
domain=[
('rounding', '>', 0),
])