<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <!-- Import BVR Wizard -->
        <record id="bvr_import_view" model="ir.ui.view">
            <field name="name">BVR Import Wizard</field>
            <field name="model">bvr.import.wizard</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="BVR Import">
                    <group width="525" colspan="4">
                        <field name="file"/>
                        <newline/>
                        <group colspan="4">
                            <button special="cancel" string="Cancel" icon="gtk-cancel"  colspan="2"/>
                            <button name="import_bvr" string="Import" type="object" icon="gtk-ok"  colspan="2"/>
                        </group>
                    </group>
                </form>
            </field>
        </record>
        
        <record id="wizard_bvr_import" model="ir.actions.act_window">
            <field name="name">BVR Import</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">bvr.import.wizard</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="bvr_import_view"/>
            <field name="target">new</field>
        </record>
        
        <record model="ir.ui.view" id="view_bank_statement_form">
            <field name="name">account.bank.statement.form.inherit</field>
            <field name="model">account.bank.statement</field>
            <field name="type">form</field>
            <field name="inherit_id" ref="account.view_bank_statement_form"/>
            <field name="arch" type="xml">
                <field name="balance_end_real" position="after">
                    <button name="%(wizard_bvr_import)d" icon="gtk-execute" string="Import BVR" type="action" colspan="2"/>
                </field>
            </field>
        </record>
    </data>
</openerp>