<?xml version="1.0"?>
<search string="Invoices Analysis">
                <filter string="My Invoices" name="my_invoice" domain="[('invoice_user_id', '=', uid)]"/>
                <separator/>
                <field name="invoice_date"/>
                <separator/>
                <filter string="To Invoice" name="toinvoice" domain="[('state','=','draft')]" help="Draft Invoices"/>
                <filter string="Invoiced" name="current" domain="[('state','not in', ('draft','cancel'))]"/>
                <separator/>
                <filter string="Customers" name="customer" domain="['|', ('move_type','=','out_invoice'),('move_type','=','out_refund')]"/>
                <filter string="Vendors" name="supplier" domain="['|', ('move_type','=','in_invoice'),('move_type','=','in_refund')]"/>
                <separator/>
                <filter string="Invoices" name="invoice" domain="['|', ('move_type','=','out_invoice'),('move_type','=','in_invoice')]"/>
                <filter string="Credit Notes" name="creditnote" domain="['|', ('move_type','=','out_refund'),('move_type','=','in_refund')]"/>
                <separator/>
                <filter name="filter_invoice_date" date="invoice_date"/>
                <filter name="invoice_date_due" date="invoice_date_due"/>
                <field name="partner_id" operator="child_of"/>
                <field name="invoice_user_id"/>
                <field name="product_id"/>
                <field name="product_categ_id" filter_domain="[('product_categ_id', 'child_of', self)]"/>
                <group expand="1" string="Group By">
                    <filter string="Salesperson" name="user" context="{'group_by':'invoice_user_id'}"/>
                    <filter string="Partner" name="partner_id" context="{'group_by':'partner_id','residual_visible':True}"/>
                    <filter string="Product Category" name="category_product" context="{'group_by':'product_categ_id','residual_invisible':True}"/>
                    <filter string="Status" name="status" context="{'group_by':'state'}"/>
                    <filter string="Company" name="company" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
                    <separator orientation="vertical"/>
                    <filter string="Date" name="invoice_date" context="{'group_by':'invoice_date'}" invisible="context.get('invoice_report_view_hide_invoice_date')"/>
                    <filter string="Date" name="group_by_invoice_date_week" context="{'group_by':'invoice_date:week'}" invisible="not context.get('invoice_report_view_hide_invoice_date')"/>
                    <filter string="Due Date" name="duemonth" context="{'group_by':'invoice_date_due:month'}"/>
                </group>
            </search>
        