<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record model="ir.ui.view" id="transaction_wizard">
            <field name="name">transaction.wizard</field>
            <field name="model">banking.transaction.wizard</field>
            <field name="inherit_id"
                   ref="account_banking.transaction_wizard_first" />
            <field name="arch" type="xml">
                <field name="invoice_ids" position="before">
                    <field name="payment_order_ids" invisible="True"/>
                </field>
                <xpath expr="//group/separator[@string='Multiple matches']/.."
                       position="after">
                       <group>
                           <field name='payment_line_id'
                               attrs="{'invisible': [('match_type', 'not in',
                               ('storno', 'payment', 'payment_manual'))]}" />
                       </group>
                </xpath>
                <field name="move_line_id" position="after">
                    <group>
                        <field name='payment_order_id'
                            attrs="{'readonly': [('match_multi', '=', False)],
                            'invisible': [('match_type', 'not in',
                            ('payment_order', 'payment_order_manual'))]}"
                            domain="[('id', 'in', payment_order_ids[0][2])]" />
                    </group>
                </field>
                <page string="Manual match" position="after">
                    <page string="Match Payments">
                        <separator string="Match this payment line" colspan="4"/>
                        <field name="manual_payment_line_id"/>
                        <separator string="Match this payment order" colspan="4"/>
                        <field name="manual_payment_order_id"/>
                    </page>
                </page>
            </field>
        </record>
    </data>
</openerp>


