<?xml version="1.0"?>
<search string="Search Journal Items to Reconcile">
                <field name="name" string="Journal Item" filter_domain="['|', '|', '|', ('name', 'ilike', self), ('ref', 'ilike', self), ('account_id', 'ilike', self), ('partner_id', 'ilike', self)]"/>
                <field name="name"/>
                <field name="ref"/>
                <field name="invoice_date"/>
                <field name="date"/>
                <field name="balance" string="Amount" filter_domain="['|', ('credit', '=', self), ('debit', '=', self)]"/>
                <field name="account_id"/>
                <field name="account_type"/>
                <field name="partner_id"/>
                <field name="journal_id"/>
                <field name="move_id" string="Journal Entry" filter_domain="['|', '|', ('move_id.name', 'ilike', self), ('move_id.ref', 'ilike', self), ('move_id.partner_id', 'ilike', self)]"/>
                <field name="tax_ids"/>
                <field name="tax_line_id" string="Originator Tax"/>
                <field name="reconcile_model_id"/>
                <separator/>
                <filter string="Unreconciled" domain="[('account_id.reconcile', '=', True), '|', ('matching_number', '=', False), ('matching_number', '=like', 'P%')]" name="reconcilable_account" help="Journal items where the account allows reconciliation no matter the residual amount"/>
                <filter string="With residual" domain="[('amount_residual', '!=', 0), ('account_id.reconcile', '=', True)]" help="Journal items where matching number isn't set" name="unreconciled"/>
                <separator/>
                <filter string="Payable" domain="[('account_id.account_type', '=', 'liability_payable'), ('account_id.non_trade', '=', False)]" help="From Trade Payable accounts" name="trade_payable"/>
                <filter string="Receivable" domain="[('account_id.account_type', '=', 'asset_receivable'), ('account_id.non_trade', '=', False)]" help="From Trade Receivable accounts" name="trade_receivable"/>
                <separator/>
                <filter string="Posted" domain="[('parent_state', '=', 'posted')]" name="posted_lines"/>
                <filter string="Unposted" domain="[('parent_state', '=', 'draft')]" name="unposted_lines"/>
                <separator/>
                <filter string="Date" name="date" date="date"/>
                <filter string="Invoice Date" name="invoice_date" date="invoice_date"/>
                <separator/>
                <group expand="0" string="Group By">
                    <filter string="Journal Entry" name="group_by_move" domain="[]" context="{'group_by': 'move_name'}"/>
                    <filter string="Account" name="group_by_account" domain="[]" context="{'group_by': 'account_id'}"/>
                    <filter string="Partner" name="group_by_partner" domain="[]" context="{'group_by': 'partner_id'}"/>
                    <filter string="Journal" name="journal" domain="[]" context="{'group_by': 'journal_id'}"/>
                    <filter string="Date" name="groupby_date" domain="[]" context="{'group_by': 'date'}"/>
                    <filter string="Invoice Date" name="groupby_invoice_date" domain="[]" context="{'group_by': 'invoice_date'}"/>
                </group>
            </search>
        