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

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

Back to entity