<?xml version="1.0"?>
<data>
                    <header position="inside">
                        <button string="Update Quantity" type="object" groups="stock.group_stock_manager" name="action_update_quantity_on_hand" attrs="{'invisible': [('type', '!=', 'product')]}"/>
                        <button string="Replenish" type="action" name="533" context="{'default_product_id': id}" groups="stock.group_stock_user" attrs="{'invisible': [('type', 'not in', ['consu', 'product'])]}"/>
                    </header>
                    <div name="button_box" position="inside">
                        <t groups="stock.group_stock_user">
                            <field name="tracking" invisible="1"/>
                            <field name="show_on_hand_qty_status_button" invisible="1"/>
                            <field name="show_forecasted_qty_status_button" invisible="1"/>
                            <button class="oe_stat_button" name="action_open_quants" icon="fa-cubes" type="object" attrs="{'invisible':[('show_on_hand_qty_status_button', '=', False)]}">
                                <div class="o_field_widget o_stat_info">
                                        <span class="o_stat_value">
                                            <field name="qty_available" widget="statinfo" nolabel="1" class="mr4"/>
                                            <field name="uom_name"/>
                                        </span>
                                        <span class="o_stat_text">On Hand</span>
                                </div>
                            </button>
                            <button type="object" name="action_product_forecast_report" attrs="{'invisible':[('show_forecasted_qty_status_button', '=', False)]}" context="{'default_product_id': id}" class="oe_stat_button" icon="fa-cubes">
                                <div class="o_field_widget o_stat_info">
                                    <span class="o_stat_value">
                                        <field name="virtual_available" widget="statinfo" nolabel="1" class="mr4"/>
                                        <field name="uom_name"/>
                                    </span>
                                    <span class="o_stat_text">Forecasted</span>
                                </div>
                            </button>
                            <button type="object" name="action_view_stock_move_lines" attrs="{'invisible':[('type', 'not in', ['product', 'consu'])]}" class="oe_stat_button" icon="fa-exchange" groups="stock.group_stock_user">
                                <div class="o_field_widget o_stat_info mr4">
                                    <span class="o_stat_text">In:</span>
                                    <span class="o_stat_text">Out:</span>
                                </div>
                                <div class="o_field_widget o_stat_info">
                                    <span class="o_stat_value"><field name="nbr_moves_in"/></span>
                                    <span class="o_stat_value"><field name="nbr_moves_out"/></span>
                                </div>
                            </button>
                            <button name="action_view_orderpoints" type="object" attrs="{'invisible':['|',('type', 'not in', ['product', 'consu']),('nbr_reordering_rules', '!=', 1)]}" class="oe_stat_button" icon="fa-refresh">
                                <div class="o_field_widget o_stat_info mr4">
                                    <span class="o_stat_text">Min:</span>
                                    <span class="o_stat_text">Max:</span>
                                </div>
                                <div class="o_field_widget o_stat_info">
                                    <span class="o_stat_value"><field name="reordering_min_qty"/></span>
                                    <span class="o_stat_value"><field name="reordering_max_qty"/></span>
                                </div>
                            </button>
                            <button type="object" name="action_view_orderpoints" attrs="{'invisible':['|',('type', '!=', 'product'),('nbr_reordering_rules', '==', 1)]}" class="oe_stat_button" icon="fa-refresh">
                                <field name="nbr_reordering_rules" widget="statinfo"/>
                            </button>
                            <button string="Lot/Serial Numbers" type="object" name="action_open_product_lot" attrs="{'invisible': [('tracking', '=', 'none')]}" class="oe_stat_button" icon="fa-bars" groups="stock.group_production_lot"/>
                            <button string="Putaway Rules" type="object" name="action_view_related_putaway_rules" class="oe_stat_button" icon="fa-random" groups="stock.group_stock_multi_locations" attrs="{'invisible': [('type', '=', 'service')]}" context="{'invisible_handle': True, 'single_product': True}"/>
                            <button type="object" string="Storage Capacities" name="action_view_storage_category_capacity" groups="stock.group_stock_storage_categories" attrs="{'invisible':[('type', '=', 'service')]}" class="oe_stat_button" icon="fa-cubes"/>
                        </t>
                    </div>
                    <xpath expr="//button[@name='565']" position="attributes">
                        <attribute name="context">
                            {'default_product_id': id}
                        </attribute>
                    </xpath>
                </data>
            