<?xml version="1.0"?>
<search string="Inventory Valuation">
                <field name="product_id"/>
                <field name="categ_id"/>
                <field name="product_tmpl_id"/>
                <separator/>
                <filter string="Incoming" name="incoming" domain="[('stock_move_id.location_id.usage', 'not in', ('internal', 'transit')), ('stock_move_id.location_dest_id.usage', 'in', ('internal', 'transit'))]"/>
                <filter string="Outgoing" name="outgoing" domain="[('stock_move_id.location_id.usage', 'in', ('internal', 'transit')), ('stock_move_id.location_dest_id.usage', 'not in', ('internal', 'transit'))]"/>
                <separator/>
                <filter string="Has Remaining Qty" name="has_remaining_qty" domain="[('remaining_qty', '&gt;', 0)]"/>
                <group expand="0" string="Group by...">
                    <filter string="Product" name="group_by_product_id" context="{'group_by': 'product_id'}"/>
                </group>
            </search>
        