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

Module: Point of Sale online payment

Entity: pos.payment.method

Compute Method: _compute_has_an_online_payment_provider

Inputs Method Outputs
for pm in self:
            if pm.type == 'online':
                pm.has_an_online_payment_provider = bool(pm._get_online_payment_providers())
            else:
                pm.has_an_online_payment_provider = False

Back to entity