mirror of
https://github.com/bringout/oca-ocb-security.git
synced 2026-04-22 10:12:09 +02:00
32 lines
1.6 KiB
XML
32 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="fetchmail_server_view_form" model="ir.ui.view">
|
|
<field name="name">fetchmail.server.view.form.inherit.outlook</field>
|
|
<field name="model">fetchmail.server</field>
|
|
<field name="priority">1000</field>
|
|
<field name="inherit_id" ref="mail.view_email_server_form"/>
|
|
<field name="arch" type="xml">
|
|
<field name="user" position="after">
|
|
<div invisible="server_type != 'outlook'"
|
|
class="d-flex flex-row align-items-center" colspan="2"
|
|
groups="base.group_system">
|
|
<span invisible="server_type != 'outlook' or not microsoft_outlook_refresh_token"
|
|
class="badge text-bg-success">
|
|
Outlook Token Valid
|
|
</span>
|
|
<button type="object"
|
|
name="open_microsoft_outlook_uri" class="btn-link px-0"
|
|
invisible="server_type != 'outlook' or microsoft_outlook_refresh_token">
|
|
<i class="oi oi-arrow-right"/>
|
|
Connect your Outlook account
|
|
</button>
|
|
<button type="object"
|
|
name="open_microsoft_outlook_uri" class="btn-link px-0 ms-2"
|
|
invisible="server_type != 'outlook' or not microsoft_outlook_refresh_token">
|
|
<i class="fa fa-cog" title="Edit Settings"/>
|
|
</button>
|
|
</div>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
</odoo>
|