mirror of
https://github.com/bringout/oca-ocb-technical.git
synced 2026-04-24 15:12:06 +02:00
19.0 vanilla
This commit is contained in:
parent
5faf7397c5
commit
2696f14ed7
721 changed files with 220375 additions and 91221 deletions
|
|
@ -4,34 +4,36 @@
|
|||
<field name="name">calendar.provider.config.view.form</field>
|
||||
<field name="model">calendar.provider.config</field>
|
||||
<field name="arch" type="xml">
|
||||
<form js_class="calendar_provider_config_form">
|
||||
<form>
|
||||
<field name="external_calendar_provider" widget="radio" options="{'horizontal': true}"/>
|
||||
<div attrs="{'invisible': [('external_calendar_provider', '!=', 'google')]}">
|
||||
<div invisible="external_calendar_provider != 'google'">
|
||||
<img alt="Google Calendar icon" src="/calendar/static/src/img/google_calendar_40.png" style="height: 40px; margin-right: 5px"/>
|
||||
<span class="me-1 o_form_label">Google Calendar</span>
|
||||
<a href="https://www.odoo.com/documentation/16.0/applications/productivity/calendar/google.html" title="Read More" class="o_doc_link" target="_blank"></a>
|
||||
<widget name="documentation_link" path="/applications/productivity/calendar/google.html" icon="fa-question-circle"/>
|
||||
<div class="text-muted mt-2">
|
||||
Synchronize your calendar with Google Calendar
|
||||
</div>
|
||||
<group>
|
||||
<field name="cal_client_id" attrs="{'required': [('external_calendar_provider', '=', 'google')]}"/>
|
||||
<field name="cal_client_secret" password="True" attrs="{'required': [('external_calendar_provider', '=', 'google')]}"/>
|
||||
<field name="cal_client_id" string="Client ID" required="external_calendar_provider == 'google'"/>
|
||||
<field name="cal_client_secret" string="Client Secret" password="True" required="external_calendar_provider == 'google'"/>
|
||||
<field name="cal_sync_paused" required="external_calendar_provider == 'google'"/>
|
||||
</group>
|
||||
</div>
|
||||
<div attrs="{'invisible': [('external_calendar_provider', '!=', 'microsoft')]}">
|
||||
<div invisible="external_calendar_provider != 'microsoft'">
|
||||
<img alt="Microsoft Outlook icon" src="/calendar/static/src/img/microsoft_calendar_40.png" style="height: 40px; margin-right: 5px"/>
|
||||
<span class="me-1 o_form_label">Outlook Calendar</span>
|
||||
<a href="https://www.odoo.com/documentation/16.0/applications/productivity/calendar/outlook.html" title="Read More" class="o_doc_link" target="_blank"></a>
|
||||
<widget name="documentation_link" path="/applications/productivity/calendar/outlook.html" icon="fa-question-circle"/>
|
||||
<div class="text-muted mt-2">
|
||||
Synchronize your calendar with Outlook
|
||||
</div>
|
||||
<group>
|
||||
<field name="microsoft_outlook_client_identifier" attrs="{'required': [('external_calendar_provider', '=', 'microsoft')]}"/>
|
||||
<field name="microsoft_outlook_client_secret" password="True" attrs="{'required': [('external_calendar_provider', '=', 'microsoft')]}"/>
|
||||
<field name="microsoft_outlook_client_identifier" string="Client ID" required="external_calendar_provider == 'microsoft'"/>
|
||||
<field name="microsoft_outlook_client_secret" string="Client Secret" password="True" required="external_calendar_provider == 'microsoft'"/>
|
||||
<field name="microsoft_outlook_sync_paused" required="external_calendar_provider == 'microsoft'"/>
|
||||
</group>
|
||||
</div>
|
||||
<footer>
|
||||
<a role="button" title="Connect" class="o_calendar_activate_external_cal btn btn-primary" t-on-click="onConnect">Connect</a>
|
||||
<widget name="calendar_connect_provider"/>
|
||||
<button string="Cancel" class="btn btn-secondary" special="cancel"/>
|
||||
</footer>
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue