diff options
| author | Martin Trigaux <mat@odoo.com> | 2019-06-20 14:21:16 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2019-07-03 11:16:24 +0000 |
| commit | 573ccf098f887cb4233ff75772b4da8e3e5a45a1 (patch) | |
| tree | 2abf22d0198f7da608d2db6d37a74ef2e4bd5df8 /odoo/fields.py | |
| parent | e2bd3e328aa0a4e2a438a3b0e9f3fc3fa5601b62 (diff) | |
[FIX] fields: implement _description_digits
Otherwise, fields_get returns the string, not the digits
Add test
Diffstat (limited to 'odoo/fields.py')
| -rw-r--r-- | odoo/fields.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/odoo/fields.py b/odoo/fields.py index c95cb00eb85..db856b646e4 100644 --- a/odoo/fields.py +++ b/odoo/fields.py @@ -1290,7 +1290,9 @@ class Float(Field): return self._digits _related__digits = property(attrgetter('_digits')) - _description_digits = property(attrgetter('_digits')) + + def _description_digits(self, env): + return self.get_digits(env) def convert_to_column(self, value, record, values=None, validate=True): result = float(value or 0.0) |
