<?xml version="1.0"?>
<openerp>
    <data>
        <!-- Create DTA -->
        <record id="dta_create_view" model="ir.ui.view">
            <field name="name">Create DTA</field>
            <field name="model">create.dta.wizard</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="DTA file creation - Results">
                    <group width="300" colspan="4">
                        <separator string="Create DTA" colspan="4"/>
                        <group colspan="4">
                            <button special="cancel" string="Cancel" icon="gtk-cancel"  colspan="2"/>
                            <button name="create_dta" string="Create DTA" type="object" icon="gtk-ok"  colspan="2"/>
                        </group>
                    </group>
                </form>
            </field>
        </record>
        
        <record id="action_dta_create" model="ir.actions.act_window">
            <field name="name">Create DTA</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">create.dta.wizard</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="dta_create_view"/>
            <field name="target">new</field>
        </record>
        
        <record model="ir.values" id="action_account_dtr_create_values">
            <field name="model_id" ref="model_create_dta_wizard" />
            <field name="object" eval="1" />
            <field name="name">Create DTA</field>
            <field name="key2">client_action_multi</field>
            <field name="value" eval="'ir.actions.act_window,' +str(ref('action_dta_create'))" />
            <field name="key">action</field>
            <field name="model">payment.order</field>
        </record>
        
        <!-- Save DTA -->
        <record id="dta_save_view" model="ir.ui.view">
            <field name="name">Save DTA</field>
            <field name="model">create.dta.wizard</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="DTA file creation - Results">
                    <group width="500" colspan="4">
                        <separator colspan="4" string="Click on 'Save as' to save the DTA file :" />
                        <field name="dta_file"/>
                    </group>
                </form>
            </field>
        </record>
        
    </data>
</openerp>