Files
odoo_source/addons/google_calendar/wizard/reset_account_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

30 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="google_calendar_reset_account_view_form" model="ir.ui.view">
<field name="name">google.calendar.account.reset.form</field>
<field name="model">google.calendar.account.reset</field>
<field name="arch" type="xml">
<form>
<h1>Reset Google Calendar Account</h1>
<group>
<field name="delete_policy" widget="radio"/>
<field name="sync_policy" widget="radio"/>
</group>
<footer>
<button name="reset_account" string="Confirm" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel" />
</footer>
</form>
</field>
</record>
<record id="google_calendar_reset_account_action" model="ir.actions.act_window">
<field name="name"></field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">google.calendar.account.reset</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
</odoo>