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: res.company

Compute Method: _compute_onboarding_payment_module

Inputs Method Outputs
  • currency_id
  • currency_id.name
  • country_id
  • country_id.is_stripe_supported_country
  • country_id.is_mercado_pago_supported_country
for company in self:
            if company.currency_id.name == "INR":
                company.onboarding_payment_module = "razorpay"
            elif company.country_id.is_stripe_supported_country:
                company.onboarding_payment_module = "stripe"
            elif company.country_id.is_mercado_pago_supported_country:
                company.onboarding_payment_module = "mercado_pago"
            else:
                company.onboarding_payment_module = None

Back to entity