<search string="Stock Locations">
                <field name="complete_name" string="Stock Locations"/>
                <filter name="in_location" string="Internal" domain="[('usage', '=', 'internal')]" help="Internal Locations"/>
                <filter name="customer" string="Customer" domain="[('usage', '=', 'customer')]" help="Customer Locations"/>
                <filter name="prod_inv_location" string="Production" domain="[('usage', 'in', ['inventory', 'production'])]" help="Production Locations"/>
                <filter name="supplier" string="Vendor" domain="[('usage', '=', 'supplier')]" help="Vendor Locations"/>
                <separator/>
                <filter name="empty_location" string="Empty Locations" domain="[('is_empty', '=', True)]"/>
                <field name="location_id" string="Parent Location"/>
                <field name="usage" string="Location Type"/>
                <field name="warehouse_id" string="Warehouse"/>
                <separator/>
                <filter string="Archived" name="inactive" domain="[('active','=',False)]"/>
                <group expand="0" string="Group By">
                    <filter string="Warehouse" name="warehouse" domain="[]" context="{'group_by': 'warehouse_id'}"/>
                    <filter string="Location Type" name="usage" domain="[]" context="{'group_by': 'usage'}"/>
                </group>
            </search>