File: calendar_provider_config.xml

package info (click to toggle)
odoo 18.0.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 878,716 kB
  • sloc: javascript: 927,937; python: 685,670; xml: 388,524; sh: 1,033; sql: 415; makefile: 26
file content (42 lines) | stat: -rw-r--r-- 2,810 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="calendar_provider_config_view_form" model="ir.ui.view">
        <field name="name">calendar.provider.config.view.form</field>
        <field name="model">calendar.provider.config</field>
        <field name="arch" type="xml">
            <form>
                <field name="external_calendar_provider" widget="radio" options="{'horizontal': true}"/>
                <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>
                    <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" 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 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>
                    <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" 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>
                    <widget name="calendar_connect_provider"/>
                    <button string="Cancel" class="btn btn-secondary" special="cancel"/>
                </footer>
            </form>
        </field>
    </record>
</odoo>