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

Inputs Method Outputs
for pm, txs in self.grouped("payment_method_id").items():
            txs.primary_payment_method_id = pm.primary_payment_method_id or pm

Back to entity