Files
odoo_source/addons/google_calendar/views/res_users_views.xml
T
Lucas Lefèvre e7f87c78cc [IMP] google_calendar: Manage account reset
To change your Google Calendar account, the authentication tokens must be set to `False`.
But doing so leaves synchronized events in the database.
This commit adds a wizard to handle those existing events as the user wants.

Task 2126717
PR #42031
PR Enterprise odoo/enterprise#8006
2020-04-09 10:59:33 +02:00

29 lines
1.3 KiB
XML

<?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="Calendar" name="calendar" groups="base.group_system">
<group>
<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': active_id}"/>
</page>
</notebook>
</field>
</record>
</odoo>