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

        <record id="view_vat_intra" model="ir.ui.view">
            <field name="name">Partner VAT intra</field>
            <field name="model">partner.vat.intra</field>
            <field name="arch" type="xml">
                <form string="Partner VAT intra">
                    <group>
                        <separator string="Intracom VAT Declaration"/>
                    </group>   
                    <notebook colspan="4">
                        <page string="General Information">
                            <group>
                                <field name="period_code"/>
                                <field name="tax_code_id" string="Company" widget="selection" groups="base.group_multi_company"/>
                                <field name="mand_id"/>
                            </group>
                            <separator string="Periods"/>
                            <field name="period_ids"/>
                            <separator string="Comments"/>
                            <field name="comments"/>
                        </page>
                        <page string="European Countries">
                            <field name="country_ids" colspan="4" nolabel="1"/>
                        </page>
                    </notebook>
                    <footer>
                        <button name="create_xml" string="Create _XML" type="object" class="oe_highlight"/>
                        <button name="preview" string="_Preview" type="object" class="oe_highlight" />
                        or
                        <button string="Cancel" class="oe_link" special="cancel" />
                    </footer>
                </form>
            </field>
        </record>

        <record id="view_vat_intra_save" model="ir.ui.view">
            <field name="name">Partner VAT intra Save</field>
            <field name="model">partner.vat.intra</field>
            <field name="arch" type="xml">
                <form string="Save XML">
                    <separator string="Note: "/>
                    <label string="Save the File with '.xml' extension."/>
                    <field name="name"/>
                    <field name="file_save" filename="name"/>
                </form>
            </field>
        </record>

        <record id="action_vat_intra" model="ir.actions.act_window">
            <field name="name">Partner Vat Intra</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">partner.vat.intra</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="view_vat_intra"/>
            <field name="target">new</field>
        </record>

        <menuitem
            name="Partner VAT Intra"
            parent="l10n_be.menu_finance_belgian_statement"
            action="action_vat_intra"
            id="l10n_be.l10_be_vat_intra"/>

    </data>
</openerp>
