Purpose ======= Less secured apps are no longer supported by google, therefore, we need to transition to the OAuth2 authentication system. Specifications ============== 1. User will need to fill their Gmail API credentials in the main settings page 2. Then, in the incoming / outgoing mail server form view, they will need to tick the Gmail support checkbox 3. A link will be available to be redirected to Gmail and accept the permission 4. The user can now copy / paste the authorization code in Odoo, set his email as "login" and then send / receive emails with Gmail Task-2170676 closes odoo/odoo#83424 X-original-commit: ff223afc5300b2421b8ce935bb468f503c938c5d Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
34 lines
1.8 KiB
XML
34 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<record id="res_config_settings_view_form" model="ir.ui.view">
|
|
<field name="name">res.config.settings.view.form.inherit.google_gmail</field>
|
|
<field name="model">res.config.settings</field>
|
|
<field name="inherit_id" ref="base_setup.res_config_settings_view_form"/>
|
|
<field name="arch" type="xml">
|
|
<div id="emails" position="inside">
|
|
<div class="col-12 col-lg-6 o_setting_box" id="google_gmail_setting"
|
|
attrs="{'invisible': [('external_email_server_default', '=', False)]}">
|
|
<div class="o_setting_right_pane">
|
|
<span class="o_form_label">Gmail Credentials</span>
|
|
<div class="text-muted">
|
|
Send and receive email with your Gmail account.
|
|
</div>
|
|
<div class="content-group">
|
|
<div class="row mt16" id="gmail_client_identifier">
|
|
<label string="Client ID" for="google_gmail_client_identifier" class="col-lg-3 o_light_label"/>
|
|
<field name="google_gmail_client_identifier" class="ml-2"/>
|
|
</div>
|
|
<div class="row mt16" id="gmail_client_secret">
|
|
<label string="Client Secret" for="google_gmail_client_secret" class="col-lg-3 o_light_label"/>
|
|
<field name="google_gmail_client_secret" class="ml-2"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|