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

        <record id="acquirer_form_ogone" model="ir.ui.view">
            <field name="name">acquirer.form.ogone</field>
            <field name="model">payment.acquirer</field>
            <field name="inherit_id" ref="payment.acquirer_form"/>
            <field name="arch" type="xml">
                <xpath expr='//group[@name="acquirer_display"]' position='after'>
                    <group attrs="{'invisible': [('provider', '!=', 'ogone')]}">
                        <field name="ogone_pspid"/>
                        <field name="ogone_userid"/>
                        <field name="ogone_password"/>
                        <field name="ogone_shakey_in"/>
                        <field name="ogone_shakey_out"/>
                    </group>
                </xpath>
            </field>
        </record>

        <record id="transaction_form_ogone" model="ir.ui.view">
            <field name="name">acquirer.transaction.form.ogone</field>
            <field name="model">payment.transaction</field>
            <field name="inherit_id" ref="payment.transaction_form"/>
            <field name="arch" type="xml">
                <xpath expr='//notebook' position='inside'>
                    <page string="Ogone TX Details">
                        <group>
                            <field name="ogone_payid"/>
                            <field name="ogone_3ds"/>
                            <field name="ogone_3ds_html"/>
                            <field name="ogone_complus"/>
                            <field name="ogone_payid"/>
                        </group>
                    </page>
                </xpath>
            </field>
        </record>

    </data>
</openerp>
