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

Module: Payment Engine

Entity: payment.transaction

Compute Method: _compute_primary_payment_method_id

View 19.0
Inputs Method Outputs
  • primary_payment_method_id
+ for pm, txs in self.grouped('payment_method_id').items():
+             txs.primary_payment_method_id = pm.primary_payment_method_id or pm
  • primary_payment_method_id

Back to entity