Skip to content
Health
77/100
good
  • Security22/25
    1 minor finding
  • Activity25/25
    Human commit this month
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 5 Odoo series since 16.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.85 MB
Module directory on disk
Code analysis 0 migration notes 3 models 4 views 4 HTTP endpoints

Description

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 4

XML IDNameModelTypeStatus
authorization_error authorization_error ir.ui.view qweb New
inline_form inline_form ir.ui.view qweb New
payment_mercado_pago.method_form payment_mercado_pago.method_form ir.ui.view qweb Inherits payment.method_form
payment_provider_form Mercado Pago Provider Form payment.provider form Inherits payment.payment_provider_form

HTTP endpoints 4

Route(s)HandlerAuthTypeMethodsFlags
(inherited route override) MercadoPagoOnboardingController.mercado_pago_return_from_authorization user http GET website
/payment/mercado_pago/payments MercadoPagoPaymentController.mercado_pago_payment public jsonrpc ALL sudo
(inherited route override) MercadoPagoPaymentController.mercado_pago_return_from_checkout public http GET
(inherited route override) MercadoPagoPaymentController.mercado_pago_webhook public http POST csrf off

Models touched 3

New fields (6)
  • code Selection
    ondelete={'mercado_pago': 'set default'} selection_add=[('mercado_pago', 'Mercado Pago')]
  • mercado_pago_access_token Char
    copy=False groups='base.group_system' string='Mercado Pago Access Token'
  • mercado_pago_access_token_expiry Datetime
    copy=False groups='base.group_system' string='Mercado Pago Access Token Expiry'
  • mercado_pago_account_country_id Many2one → res.country
    comodel_name='res.country' copy=False domain=[('code', 'in', list(const.SUPPORTED_COUNTRIES))] help='The country of the Mercado Pago account. The currency will be updated to match the country of the Mercado Pago account.' inverse='_inverse_mercado_pago_account_country_id' required_if_provider='mercado_pago' string='Mercado Pago Account Country'
  • mercado_pago_public_key Char
    copy=False groups='base.group_system' string='Mercado Pago Public Key'
  • mercado_pago_refresh_token Char
    copy=False groups='base.group_system' string='Mercado Pago Refresh Token'
Public methods (2)
  • action_start_onboarding(self, menu_id=None)
    Override of `payment` to redirect to the Mercado Pago OAuth URL. Note: `self.ensure_one()` :param int menu_id: The menu from which the onboarding is started, as an `ir.ui.menu` id. :return: An URL action to redirect to the Mercado Pago OAuth URL. :rtype: dict :raise RedirectWarning: If the company's currency is not supported.
  • write(self, vals)
    Override of `payment` to prevent changing `is_live` while an account is connected. :raise UserError: If `is_live` changes on a connected provider without new credentials

New fields (1)
  • mercado_pago_customer_id Char
    readonly=True
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…