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

Module: Recurring - Contracts Management

Entity: contract.template.line

Compute Method: _compute_uom_id

Inputs Method Outputs
for line in self:
            if not line.product_id:
                line.uom_id = False
            elif not line.uom_id or line.uom_id not in line.allowed_uom_ids:
                line.uom_id = line.product_id.uom_id

Back to entity