Odoo 11 Development Cookbook(Second Edition)
上QQ阅读APP看本书,新人免费读10天
设备和账号都新为新人

Using a float field with configurable precision

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.