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

Module: Units of measure

Entity: uom.uom

Compute Method: _compute_rounding

Inputs Method Outputs
""" All Units of Measure share the same rounding precision defined in 'Product Unit'.
            Set in a compute to ensure compatibility with previous calls to `uom.rounding`.
        """
decimal_precision = self.env['decimal.precision'].precision_get('Product Unit')
self.rounding = 10 ** -decimal_precision

Back to entity