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

        <record id="view_vat_declaration" model="ir.ui.view">
            <field name="name">Vat Declaraion</field>
            <field name="model">l1on_be.vat.declaration</field>
            <field name="arch" type="xml">
                <form string="Periodical VAT Declaration" version="7.0">
                    <group>
                        <group string="Declare Periodical VAT">
                            <field name="period_id" widget="selection"/>
                            <field name="tax_code_id" string="Company" widget="selection" groups="base.group_multi_company"/>
                        </group>
                        <group string="Advanced Options">
                            <field name="ask_restitution"/>
                            <field name="ask_payment"/>
                            <field name="client_nihil" string="Is Last Declaration"/>
                        </group>
                    </group>
                    <separator string="Comments"/>
                    <field name="comments"/>
                    <footer>
                        <button name="create_xml" string="Create XML" type="object" default_focus="1" class="oe_highlight"  />
                        or
                        <button string="Cancel" class="oe_link" special="cancel" />
                    </footer>
                </form>
            </field>
        </record>

        <record id="view_vat_save" model="ir.ui.view">
            <field name="name">Save XML</field>
            <field name="model">l1on_be.vat.declaration</field>
            <field name="arch" type="xml">
                <form string="Save xml" version="7.0">
                    <label string="Save the File with '.xml' extension."/>
                    <field name="name"/>
                    <field name="file_save" readonly="True" filename="name"/>
                </form>
            </field>
        </record>

        <record id="action_vat_declaration" model="ir.actions.act_window">
            <field name="name">Vat Declaration</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">l1on_be.vat.declaration</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="view_vat_declaration"/>
            <field name="target">new</field>
        </record>

        <menuitem
            name="Periodical VAT Declaration"
            parent="l10n_be.menu_finance_belgian_statement"
            action="action_vat_declaration"
            id="l10n_be.l10_be_vat_declaration"
            groups="account.group_account_manager"/>

    </data>
</openerp>
