summaryrefslogtreecommitdiff
path: root/addons/microsoft_calendar/views
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/microsoft_calendar/views
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/microsoft_calendar/views')
-rw-r--r--addons/microsoft_calendar/views/microsoft_calendar_templates.xml10
-rw-r--r--addons/microsoft_calendar/views/microsoft_calendar_views.xml13
-rw-r--r--addons/microsoft_calendar/views/res_config_settings_views.xml20
-rw-r--r--addons/microsoft_calendar/views/res_users_views.xml26
4 files changed, 69 insertions, 0 deletions
diff --git a/addons/microsoft_calendar/views/microsoft_calendar_templates.xml b/addons/microsoft_calendar/views/microsoft_calendar_templates.xml
new file mode 100644
index 00000000..e9852051
--- /dev/null
+++ b/addons/microsoft_calendar/views/microsoft_calendar_templates.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <template id="assets_backend" name="microsoft_calendar assets" inherit_id="web.assets_backend">
+ <xpath expr="." position="inside">
+ <link rel="stylesheet" type="text/scss" href="/microsoft_calendar/static/src/scss/microsoft_calendar.scss"/>
+ <script type="text/javascript" src="/microsoft_calendar/static/src/js/microsoft_calendar_popover.js"></script>
+ <script type="text/javascript" src="/microsoft_calendar/static/src/js/microsoft_calendar.js"></script>
+ </xpath>
+ </template>
+</odoo>
diff --git a/addons/microsoft_calendar/views/microsoft_calendar_views.xml b/addons/microsoft_calendar/views/microsoft_calendar_views.xml
new file mode 100644
index 00000000..dd0db461
--- /dev/null
+++ b/addons/microsoft_calendar/views/microsoft_calendar_views.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<odoo>
+ <record id="view_microsoft_calendar_event" model="ir.ui.view">
+ <field name="name">microsoft_calendar.event.calendar</field>
+ <field name="model">calendar.event</field>
+ <field name="inherit_id" ref="calendar.view_calendar_event_calendar"/>
+ <field name="arch" type="xml">
+ <field name="attendee_status" position="after">
+ <field name="microsoft_id" invisible="1"/>
+ </field>
+ </field>
+ </record>
+</odoo>
diff --git a/addons/microsoft_calendar/views/res_config_settings_views.xml b/addons/microsoft_calendar/views/res_config_settings_views.xml
new file mode 100644
index 00000000..4156b7a3
--- /dev/null
+++ b/addons/microsoft_calendar/views/res_config_settings_views.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <record id="res_config_settings_view_form" model="ir.ui.view">
+ <field name="name">res.config.settings.view.form.inherit.microsoft.calendar</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="msg_module_microsoft_calendar" position="replace">
+ <div class="content-group" attrs="{'invisible': [('module_microsoft_calendar','=',False)]}">
+ <div class="mt16 row">
+ <label for="cal_microsoft_client_id" string="Client ID" class="col-3 col-lg-3 o_light_label"/>
+ <field name="cal_microsoft_client_id" nolabel="1"/>
+ <label for="cal_microsoft_client_secret" string="Client Secret" class="col-3 col-lg-3 o_light_label"/>
+ <field name="cal_microsoft_client_secret" password="True" nolabel="1"/>
+ </div>
+ </div>
+ </div>
+ </field>
+ </record>
+</odoo>
diff --git a/addons/microsoft_calendar/views/res_users_views.xml b/addons/microsoft_calendar/views/res_users_views.xml
new file mode 100644
index 00000000..e15de470
--- /dev/null
+++ b/addons/microsoft_calendar/views/res_users_views.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <record id="view_users_form" model="ir.ui.view">
+ <field name="name">res.users.form</field>
+ <field name="model">res.users</field>
+ <field name="inherit_id" ref="base.view_users_form"/>
+ <field name="arch" type="xml">
+ <notebook colspan="4" position="inside">
+ <page string="Outlook Calendar" name="calendar" groups="base.group_system">
+ <group>
+ <field name="microsoft_calendar_rtoken" readonly="1"/>
+ <field name="microsoft_calendar_token" readonly="1"/>
+ <field name="microsoft_calendar_token_validity" readonly="1"/>
+ <field name="microsoft_calendar_sync_token" readonly="1"/>
+ </group>
+ <button
+ string="Reset Account" class="btn btn-secondary"
+ type="action" name="%(microsoft_calendar_reset_account_action)d"
+ context="{'default_user_id': id}"/>
+ </page>
+ </notebook>
+ </field>
+ </record>
+
+</odoo>