Repository
odoo/odoo · module folder
Module version
1.2
Category
Hidden
Folder size
0.65 MB
License
LGPL-3
Application
No
Auto-installable
Yes
Website
None
Last tracking update
2026-08-15 22:44:14
Authors
Odoo S.A.
Maintainers
Odoo S.A.
Committers
Raphael Collet, Odoo Translation Bot, Denis Ledoux, Julien Castiaux, std-odoo, Tiffany Chang (tic), Gorash, Renaud Thiry, Dylan Kiss (dyki), Anton Romanova (roan), chpa-odoo
Odoo dependencies
odoo/odoo:
- web
- bus
Python dependencies
None
System dependencies
None
Required by
None
Description
Gmail support for incoming / outgoing mail servers

Code Analysis

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
/google_gmail/iap_confirm GoogleGmailController.google_gmail_iap_callback user http ALL
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…