<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <!-- Inherited user view for Adding API key.  -->
    <record id="view_users_form" model="ir.ui.view">
        <field name="name">view.users.form.inherit.rest.api.odoo</field>
        <field name="inherit_id" ref="base.view_users_form"/>
        <field name="model">res.users</field>
        <field name="arch" type="xml">
            <xpath expr="//page[@name='access_rights']" position="after">
                <page string="API" name="rest-api">
                    <group>
                        <field name="api_key" groups="base.group_user"/>
                    </group>
                </page>
            </xpath>
        </field>
    </record>
</odoo>
