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

Module: Test ORM

Entity: test_orm.model_parent_m2o

Compute Method: _compute_cost

Inputs Method Outputs
for record in self:
            record.cost = sum(child.cost for child in record.child_ids)

Back to entity