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.uom_id or (
                line.product_id.uom_id.category_id.id != line.uom_id.category_id.id
            ):
                line.uom_id = line.product_id.uom_id

Back to entity