<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="view_users_form" model="ir.ui.view">
        <field name="name">auth_oauth_multi_token user form</field>
        <field name="model">res.users</field>
        <field name="type">form</field>
        <field name="inherit_id" ref="auth_oauth.view_users_form" />
        <field name="arch" type="xml">
            <field name="oauth_uid" position="after">
                <field name="oauth_access_max_token" />
            </field>
            <xpath expr="//field[@name='oauth_provider_id']/.." position="after">
                <group name="multi_token_info" string="Latest Tokens">
                    <label for="oauth_access_token_ids" />
                    <field
                        name="oauth_access_token_ids"
                        nolabel="1"
                        options="{'no_create': True, 'no_open': True}"
                    >
                        <tree limit="10">
                            <field name="create_date" />
                        </tree>
                    </field>
                    <button
                        string="Clear Tokens"
                        type="object"
                        name="action_oauth_clear_token"
                        class="oe_highlight"
                    />
                </group>
            </xpath>
        </field>
    </record>
</odoo>
