Repository
OCA/connector-mautic · module folder · Try on Runboat
Module version
1.0.0
Category
Connector
Folder size
0.08 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/connector-mautic
Last tracking update
2026-08-27 23:12:46
Authors
Odoo Community Association (OCA), Escodoo
Maintainers
Odoo Community Association (OCA), Escodoo
Committers
OCA-git-bot, oca-ci, CristianoMafraJunior
Odoo dependencies
OCA/connector:
OCA/queue:
odoo/odoo:
- web
- bus
Python dependencies
requests, cachetools
System dependencies
None
Required by
None
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.

Code Analysis

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)