<?xml version="1.0"?>
<search>
                <field name="lot_id" string="Lot/Serial Number"/>
                <field name="product_id"/>
                <field name="partner_id"/>
                <filter string="Delivery Date" name="delivery_date" date="delivery_date"/>
                <filter string="Unreturned" name="filter_not_has_return" domain="[('has_return', '=', False)]"/>
                <group expand="0" string="Group By">
                    <filter name="group_by_product" string="Product" domain="[]" context="{'group_by': 'product_id'}"/>
                    <filter name="group_by_partner" string="Address" domain="[]" context="{'group_by': 'address'}"/>
                    <filter name="group_by_lot" string="Lot / Serial Number" domain="[]" context="{'group_by': 'lot_id'}"/>
                    <filter name="group_by_delivery_date" string="Delivery date" domain="[]" context="{'group_by': 'delivery_date'}"/>
                </group>
            </search>
        