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_authorized_transaction_ids

View 19.0 View 20.0
Inputs Method Outputs
  • transaction_ids
  • authorized_transaction_ids
for trans in self:
-             trans.authorized_transaction_ids = trans.transaction_ids.filtered(lambda t: t.state == 'authorized')
+             trans.authorized_transaction_ids = trans.transaction_ids.filtered(
+                 lambda t: t.state == "authorized"
+             )
            trans.has_authorized_transaction_ids = bool(trans.authorized_transaction_ids)
  • authorized_transaction_ids
  • has_authorized_transaction_ids

Back to entity