Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 9 Odoo series since 12.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.65 MB
Module directory on disk
Code analysis 0 migration notes 5 models 4 views 2 HTTP endpoints

Description

Gmail support for incoming / outgoing mail servers

Dependencies

Odoo dependencies
odoo/odoo:
- web
- bus
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
fetchmail_server_view_form fetchmail.server.view.form.inherit.gmail fetchmail.server form Inherits mail.view_email_server_form
google_gmail_oauth_error google_gmail_oauth_error ir.ui.view qweb New
ir_mail_server_view_form ir.mail_server.view.form.inherit.gmail ir.mail_server form Inherits base.ir_mail_server_form
res_config_settings_view_form res.config.settings.view.form.inherit.google_gmail res.config.settings form Inherits mail.res_config_settings_view_form

HTTP endpoints 2

Route(s)HandlerAuthTypeMethodsFlags
/google_gmail/confirm GoogleGmailController.google_gmail_callback user http ALL sudo
/google_gmail/iap_confirm GoogleGmailController.google_gmail_iap_callback user http ALL sudo

Models touched 5

New fields (1)
  • server_type Selection
    ondelete={'gmail': 'set default'} selection_add=[('gmail', 'Gmail OAuth Authentication')]
Public methods (1)
  • onchange_server_type(self)
    @api.onchange('server_type', 'is_ssl', 'object_id')
    Set the default configuration for a IMAP Gmail server.

New fields (5)
  • active Boolean
    default=True
  • google_gmail_access_token Char
    copy=False groups='base.group_system' string='Access Token'
  • google_gmail_access_token_expiration Integer
    copy=False groups='base.group_system' string='Access Token Expiration Timestamp'
  • google_gmail_refresh_token Char
    copy=False groups='base.group_system' string='Refresh Token'
  • google_gmail_uri Char
    compute='_compute_gmail_uri' groups='base.group_system' help='The URL to generate the authorization code from Google' string='URI'
Public methods (1)
  • open_google_gmail_uri(self)
    Open the URL to accept the Gmail permission. This is done with an action, so we can force the user the save the form. We need him to save the form so the current mail server record exist in DB, and we can include the record ID in the URL.

New fields (1)
  • smtp_authentication Selection
    ondelete={'gmail': 'set default'} selection_add=[('gmail', 'Gmail OAuth Authentication')]
Public methods (0)

No public methods.

New fields (2)
  • google_gmail_client_identifier Char
    config_parameter='google_gmail_client_id' args: 'Gmail Client Id'
  • google_gmail_client_secret Char
    config_parameter='google_gmail_client_secret' args: 'Gmail Client Secret'
Public methods (0)

No public methods.

New fields (1)
  • outgoing_mail_server_type Selection
    ondelete={'gmail': 'set default'} selection_add=[('gmail', 'Gmail')]
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…