Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Base

Entity: res.currency

Compute Method: _compute_decimal_places

View 19.0
Inputs Method Outputs
  • rounding
- for currency in self:
-             if 0 < currency.rounding < 1:
-                 currency.decimal_places = int(math.ceil(math.log10(1/currency.rounding)))
-             else:
-                 currency.decimal_places = 0
  • decimal_places

Back to entity