<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <record id="res_users_view_form_preferences" model="ir.ui.view">
            <field name="name">res.users.preferences.form.inherit</field>
            <field name="model">res.users</field>
            <field name="inherit_id" ref="base.view_users_form_simple_modif"/>
            <field name="arch" type="xml">
                <group name="signature" position="after">
                    <group name="Warehouses">
                        <field name="property_warehouse_id" groups="stock.group_stock_multi_warehouses"/>
                    </group>
                </group>
            </field>
        </record>

        <record id="res_users_view_simple_form" model="ir.ui.view">
            <field name="name">res.users.simple.form.inherit</field>
            <field name="model">res.users</field>
            <field name="inherit_id" ref="base.view_users_simple_form"/>
            <field name="arch" type="xml">
                <group name="phone_numbers" position="after">
                    <group name="Warehouses">
                        <field name="property_warehouse_id" groups="stock.group_stock_multi_warehouses"/>
                    </group>
                </group>
            </field>
        </record>

        <record id="res_users_view_form" model="ir.ui.view">
            <field name="name">res.users.form.inherit</field>
            <field name="model">res.users</field>
            <field name="inherit_id" ref="base.view_users_form"/>
            <field name="arch" type="xml">
                <group name="messaging" position="after">
                    <group name="Warehouses" string="Inventory" groups="stock.group_stock_multi_warehouses">
                        <field name="property_warehouse_id" groups="stock.group_stock_multi_warehouses"/>
                    </group>
                </group>
            </field>
        </record>

    </data>
</odoo>