diff options
| author | Mitali Patel <mpa@odoo.com> | 2018-08-13 12:43:30 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2019-07-03 11:15:48 +0000 |
| commit | 0c5121a979f02d6eee9779068cbb2d43788dc917 (patch) | |
| tree | 3afa8a1763ab0522680b08e771639202e3ca5e5a /doc/python3.rst | |
| parent | 93b370c1f15035a7a28919890b86be02e78c54a3 (diff) | |
[IMP] decimal_precision: integrate into base
The decimal precision feature makes sense to be an ORM feature, no need to be
in a specific module
Previous syntax was
from odoo.addons import decimal_precision as dp
fields.Float(digits=dp.get_precision('Foo'))
and now is:
fields.Float(digits='Foo')
Remove the possibility to have a callable method on the digits attribute (it
was only used for precision anyway) and directly retrieve the digits on the
decimal.precision model
Rename the method digits to get_digits to avoid confusion between the field
attribute when declaring a field and the method to retrieve the precision
Task id: 48198
Diffstat (limited to 'doc/python3.rst')
0 files changed, 0 insertions, 0 deletions
