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_paid

View 19.0 View 20.0
Inputs Method Outputs
  • transaction_ids
- """ Sum of the amount paid through all transactions for this SO. """
+ """Sum of the amount paid through all transactions for this SO."""
for order in self:
            order.amount_paid = sum(
-                 tx.amount for tx in order.transaction_ids if tx.state in ('authorized', 'done')
+                 tx.amount for tx in order.transaction_ids if tx.state in ("authorized", "done")
            )
  • amount_paid

Back to entity