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

        <record id="view_base_module_import" model="ir.ui.view">
            <field name="name">Module Import</field>
            <field name="model">base.module.import</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
            <form string="Module import">
            <separator string="Module Import" colspan="4"/>
            <label string="Please give your module .ZIP file to import." colspan="4"/>
            <field name="module_file"/>
            <separator string="" colspan="4" />
            <newline/>
            <group colspan="6" >
                <button special="cancel" string="Cancel" icon="gtk-cancel"/>
                <button name="importzip" string="Import module" type="object" icon="gtk-ok"/>
            </group>
             </form>
            </field>
        </record>

        <record id="action_view_base_module_import" model="ir.actions.act_window">
            <field name="name">Module Import</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">base.module.import</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
        </record>

        <menuitem
        name="Import Module"
        action="action_view_base_module_import"
        id="menu_view_base_module_import"
       parent="menu_management"
       sequence="1"/>

        <record id="view_base_module_import_msg" model="ir.ui.view">
            <field name="name">Module Import Message</field>
            <field name="model">base.module.import.msg</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
            <form string="Message">
            <label string="Module successfully imported !"/>
            <separator string="" colspan="4"/>
            <newline/>
            <group>
            <button name="action_module_open" string="Cancel" type="object" icon="gtk-cancel"/>
            </group>
            </form>
            </field>
        </record>

        <record id="action_view_base_module_import_msg" model="ir.actions.act_window">
            <field name="name">Module Import Message</field>
            <field name="res_model">base.module.import.msg</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="view_base_module_import"/>
            <field name="target">new</field>
        </record>
    </data>
</openerp>

