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.onchange.order

Compute Method: _compute_total

View 20.0
Inputs Method Outputs
  • base
  • line_ids
+ for order in self:
+             order.total = order.base * sum(order.line_ids.mapped('price'))
  • total

Back to entity