<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <!-- 
             Add the payment mode type and transfer settings
        -->
        <record id="view_payment_mode_form_inherit" model="ir.ui.view">
            <field name="name">payment.mode.form.inherit</field>
            <field name="model">payment.mode</field>
            <field name="inherit_id" ref="account_banking_payment_export.view_payment_mode_form_inherit"/>
            <field name="arch" type="xml">
                <field name="type" position="after">
                    <group colspan="4" col="4">
                        <group colspan="2">
                            <separator colspan="2"
                                       string="Transfer move settings" />
                            <field name="transfer_account_id"
                                   domain="[('type', '=', 'other'),
                                           ('reconcile', '=', True),
                                           ('company_id', '=', company_id)]"
                                   context="{
                                       'default_type': 'other',
                                       'default_reconcile': True,
                                       'default_company_id': company_id}"
                                   />
                            <field name="transfer_journal_id"
                                   domain="[('company_id', '=', company_id)]"
                                   />
                        </group>
                        <group colspan="2">
                            <separator colspan="2"
                                       string="Optional filter by payment term" />
                            <field name="payment_term_ids" nolabel="1" colspan="2"/>
                        </group>
                    </group>
                </field>
            </field>
        </record>

    </data>
</openerp>
