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

Compute Method: _compute_subtotal

View 20.0
Inputs Method Outputs
  • order_id
  • order_id.base
  • price
+ for line in self:
+             line.subtotal = line.order_id.base * line.price
  • subtotal

Back to entity