<odoo>
    <record id="view_stock_quant_tree_reserved_quantity_editable" model="ir.ui.view">
        <field name="name">stock.quant.inherit.form.reserved.quant.editable</field>
        <field name="model">stock.quant</field>
        <field name="inherit_id" ref="stock.view_stock_quant_tree_inventory_editable" />
        <field name="arch" type="xml">
            <field name="available_quantity" position="after">
                <field name="reserved_quantity" optional="show" />
                <button
                    name="action_reserved_moves"
                    type="object"
                    attrs="{'invisible': [('reserved_quantity', '=', 0)]}"
                    class="btn btn-link text-info"
                    icon="fa-info-circle"
                    title="Reserved Moves"
                />
            </field>
        </field>
    </record>

    <record id="view_stock_quant_tree_reserved_quantity" model="ir.ui.view">
        <field name="name">stock.quant.inherit.form.reserved.quant</field>
        <field name="model">stock.quant</field>
        <field name="inherit_id" ref="stock.view_stock_quant_tree" />
        <field name="arch" type="xml">
            <field name="available_quantity" position="after">
                <field name="reserved_quantity" optional="show" />
                <button
                    name="action_reserved_moves"
                    type="object"
                    attrs="{'invisible': [('reserved_quantity', '=', 0)]}"
                    class="btn btn-link text-info"
                    icon="fa-info-circle"
                    title="Reserved Moves"
                />
            </field>
        </field>
    </record>
</odoo>
