summaryrefslogtreecommitdiff
path: root/addons/google_calendar/views/res_users_views.xml
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/google_calendar/views/res_users_views.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/google_calendar/views/res_users_views.xml')
-rw-r--r--addons/google_calendar/views/res_users_views.xml28
1 files changed, 28 insertions, 0 deletions
diff --git a/addons/google_calendar/views/res_users_views.xml b/addons/google_calendar/views/res_users_views.xml
new file mode 100644
index 00000000..a6795d07
--- /dev/null
+++ b/addons/google_calendar/views/res_users_views.xml
@@ -0,0 +1,28 @@
+<?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="Google Calendar" name="calendar" groups="base.group_system">
+ <group class="text-break">
+ <field name="google_calendar_rtoken" readonly="1"/>
+ <field name="google_calendar_token" readonly="1"/>
+ <field name="google_calendar_token_validity" readonly="1"/>
+ <field name="google_calendar_sync_token" readonly="1"/>
+ <field name="google_calendar_cal_id" readonly="1"/>
+ </group>
+ <button
+ string="Reset Account" class="btn btn-secondary"
+ type="action" name="%(google_calendar_reset_account_action)d"
+ context="{'default_user_id': id}"/>
+ </page>
+ </notebook>
+ </field>
+ </record>
+
+</odoo>
+