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

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

Back to entity