Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Sales

Entity: sale.order

Compute Method: _compute_amount_invoiced

View 19.0 View 20.0
Inputs Method Outputs
  • order_line
for order in self:
-             order.amount_invoiced = sum(order.order_line.mapped('amount_invoiced'))
+             order.amount_invoiced = sum(order.order_line.mapped("amount_invoiced"))
  • amount_invoiced

Back to entity