April 2016
Beginner to intermediate
400 pages
9h 16m
English
When using float fields, we may want to let the end user configure the precision that is to be used. The Decimal Precision Configuration module addon provides this ability.
We will add a Cost Price field to the Library Book model, with a user-configurable number of digits.
We will reuse the my_module addon module from Chapter 3, Creating Odoo Modules.
We need to install the decimal_precision module, add a "Usage" entry for our configuration, and then use it in the model field: