<?xml version="1.0"?>
<field name="qty_available" position="before">
                    <field name="company_currency_id" invisible="1"/>
                    <field name="cost_method" invisible="1"/>
                    <field name="avg_cost" string="Unit Cost" optional="show" widget="monetary" options="{'currency_field': 'company_currency_id'}"/>
                    <field name="total_value" string="Total Value" optional="show" widget="monetary" options="{'currency_field': 'company_currency_id'}" sum="Total Value"/>
                    <button name="584" title="Valuation Report" type="action" class="btn-link" icon="fa-bar-chart" context="{'search_default_product_id': id, 'default_product_id': id}" attrs="{'invisible': [('cost_method', '!=', 'average')]}"/>
                    <button name="585" title="Valuation Report" type="action" class="btn-link" icon="fa-bar-chart" context="{'search_default_product_id': id, 'default_product_id': id}" attrs="{'invisible': [('cost_method', '!=', 'fifo')]}"/>
                </field>
            