<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record id="view_account_change_currency" model="ir.ui.view">
            <field name="name">Change Currency</field>
            <field name="model">account.change.currency</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Invoice Currency">
                    <separator colspan="4" string="This wizard will change the currency of the invoice"/>
                    <field name="currency_id"/>
                    <separator colspan="4"/>
                    <group colspan="2" col="4">
                        <button special="cancel" string="Cancel"  icon="gtk-cancel"/>
                        <button name="change_currency" string="Change Currency" type="object" icon="terp-stock_effects-object-colorize"/>
                    </group>
                </form>
            </field>
        </record>

        <record id="action_account_change_currency" model="ir.actions.act_window">
            <field name="name">Change Currency</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">account.change.currency</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="view_account_change_currency"/>
            <field name="context">{'record_id' : active_id}</field>
            <field name="target">new</field>
        </record>
    </data>
</openerp>
