Skip to content
Health
60/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 18.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
2 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.08 MB
Module directory on disk
Code analysis 0 migration notes 1 model 3 views 1 HTTP endpoint

Description

Base module of the Mautic connector suite. It provides only the connection to a Mautic instance:

  • the mautic.backend model, holding the connection settings (Mautic URL, OAuth2 Client ID / Secret),
  • the OAuth2 authorization flow (connect, callback, automatic token refresh),
  • a Test Connection action to verify the credentials are still valid.

This module does not synchronize any business data by itself. It is meant to be extended by future modules (contacts, tags, segments, ...) that will depend on it.

Dependencies

Odoo dependencies
OCA/connector:
OCA/queue:
odoo/odoo:
- web
- bus
Python dependencies
requests, cachetools
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 3

XML IDNameModelTypeStatus
mautic_backend_view_form mautic.backend.form mautic.backend form New
mautic_backend_view_list mautic.backend.list mautic.backend list New
mautic_backend_view_search mautic.backend.search mautic.backend search New

HTTP endpoints 1

Route(s)HandlerAuthTypeMethodsFlags
/mautic/oauth2/callback MauticController.oauth2_callback user http ALL

Models touched 1

New fields (11)
  • access_token Char
    copy=False groups='base.group_system'
  • active Boolean
    default=True
  • api_url Char
    help='Base URL of the Mautic instance, without a trailing slash, e.g. https://mautic.example.com' required=True string='Mautic URL'
  • client_id Char
    required=True
  • client_secret Char
    required=True
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> required=True
  • name Char
    required=True
  • redirect_url Char
    compute='_compute_redirect_url' help="Register this URL as the 'Redirect URI' of the Mautic API credentials." string='Callback URL'
  • refresh_token Char
    copy=False groups='base.group_system'
  • state Selection
    compute='_compute_state' store=True args: [('not_connected', 'Not Connected'), ('connected', 'Connected')]
  • token_expires_at Datetime
    copy=False
Public methods (2)
  • action_authorize(self)
    Open the Mautic authorization page in a new window. Mautic will redirect back to the ``/mautic/oauth2/callback`` route with an authorization ``code``, identifying the backend through the ``state`` query parameter.
  • action_test_connection(self)