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.modified

Compute Method: _compute_total_quantity

Inputs Method Outputs
for rec in self:
            rec.total_quantity = sum(rec.line_ids.mapped('quantity'))

Back to entity