<search string="Quants">
                <field name="product_id"/>
                <field name="location_id"/>
                <field name="warehouse_id"/>
                <field name="storage_category_id" groups="stock.group_stock_multi_locations"/>
                <field name="user_id"/>
                <field name="inventory_date"/>
                <field name="product_categ_id"/>
                <field name="product_tmpl_id"/>
                <field name="package_id" groups="stock.group_tracking_lot"/>
                <field name="lot_id" groups="stock.group_production_lot"/>
                <field name="owner_id" groups="stock.group_tracking_owner"/>
                <field name="lot_properties"/>
                <group expand="0" string="Filters">
                    <filter name="internal_loc" string="Internal Locations" domain="[('location_id.usage','=', 'internal')]"/>
                    <filter name="transit_loc" string="Transit Locations" domain="[('location_id.usage' ,'=', 'transit')]"/>
                    <separator/>
                    <filter name="on_hand" string="On Hand" domain="[('on_hand', '=', True)]"/>
                    <filter name="to_count" string="To Count" domain="[('inventory_date', '&lt;=', context_today().strftime('%Y-%m-%d'))]"/>
                    <filter name="to_apply" string="To Apply" domain="[('inventory_quantity_set', '=', True)]"/>
                    <filter name="priority_products" string="Starred Products" domain="[('is_favorite', '=', True)]"/>
                    <separator/>
                    <filter name="in_stock" string="In Stock" domain="[('quantity', '&gt;', 0.0)]"/>
                    <filter name="conflicts" string="Conflicts" domain="[('is_outdated', '=', True)]"/>
                    <filter name="negative" string="Negative Stock" domain="[('quantity', '&lt;', 0.0)]"/>
                    <filter name="reserved" string="Reservations" domain="[('reserved_quantity', '&gt;', 0.0)]"/>
                    <separator/>
                    <filter name="filter_in_date" date="in_date"/>
                    <separator/>
                    <filter name="my_count" string="My Counts" domain="[('user_id', '=', uid)]"/>
                </group>
                <group expand="0" string="Group by...">
                    <filter string="Product" name="productgroup" context="{'group_by': 'product_id'}"/>
                    <filter string="Product Category" name="productcategorygroup" context="{'group_by': 'product_categ_id'}"/>
                    <filter string="Location" name="locationgroup" domain="[]" context="{'group_by': 'location_id'}"/>
                    <filter string="Storage Category" name="storagecategorygroup" domain="[]" context="{'group_by': 'storage_category_id'}"/>
                    <filter string="Owner" name="owner" context="{'group_by': 'owner_id'}" groups="stock.group_tracking_owner"/>
                    <filter string="Lot/Serial Number" name="Lot_Serial_number" context="{'group_by': 'lot_id'}" groups="stock.group_production_lot"/>
                    <filter string="Package" name="package" domain="[]" context="{'group_by': 'package_id'}" groups="stock.group_tracking_lot"/>
                    <filter string="Company" name="company" domain="[]" context="{'group_by': 'company_id'}" groups="base.group_multi_company"/>
               </group>
            </search>