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.country

Compute Method: _compute_provider_support

View 19.0
Inputs Method Outputs
  • code
+ for country in self:
+             country.is_stripe_supported_country = (
+                 stripe is not None
+                 and stripe.const.COUNTRY_MAPPING.get(
+                     country.code, country.code
+                 ) in stripe.const.SUPPORTED_COUNTRIES
+             )
+             country.is_mercado_pago_supported_country = (
+                 mercado_pago
+                 and country.code in mercado_pago.const.SUPPORTED_COUNTRIES
+             )
  • is_stripe_supported_country
  • is_mercado_pago_supported_country

Back to entity