<?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="calendar.res_users_view_form"/>
            <field name="arch" type="xml">
                <xpath expr="//page[@name='calendar']" position='attributes'>
                    <attribute name="invisible">0</attribute>
                </xpath>
                <group name="calendar_accounts" position="inside">
                    <group string="Outlook Calendar">
                        <group>
                            <field name="microsoft_calendar_rtoken" string="Refresh Token" readonly="1"/>
                            <field name="microsoft_calendar_token" string="User Token" readonly="1"/>
                            <field name="microsoft_calendar_token_validity" string="Token Validity" readonly="1"/>
                            <field name="microsoft_calendar_sync_token" string="Next Sync Token" readonly="1"/>
                            <button
                                string="Reset Account" class="btn btn-secondary mt-3"
                                type="action" name="%(microsoft_calendar_reset_account_action)d"
                                context="{'default_user_id': id}"/>
                        </group>
                    </group>
                </group>
            </field>
        </record>

</odoo>
