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

        <record id="view_account_vat_declaration" model="ir.ui.view">
            <field name="name">Account Vat Declaration</field>
            <field name="model">account.vat.declaration</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
            <form string="Select Period">
                <field name="company_id" groups="base.group_multi_company" widget='selection'/>
                <newline/>
                <field name="based_on"/>
                <newline/>
                <separator string="Select Period(s)" colspan="4"/>
                <field name="periods" nolabel="1" colspan="2"/>
                <group col="2" colspan="4">
                    <button icon='gtk-cancel' special="cancel"  string="Cancel" />
                    <button name="create_vat" string="Print VAT Decl." colspan="1" type="object" icon="gtk-ok"/>
                </group>
            </form>
            </field>
        </record>

        <record id="action_account_vat_declaration" model="ir.actions.act_window">
            <field name="name">Account Vat Declaration</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">account.vat.declaration</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
            <field name="help">This menu print a VAT declaration based on invoices or payments. You can select one or several periods of the fiscal year. Information required for a tax declaration is automatically generated by OpenERP from invoices (or payments, in some countries). This data is updated in real time. That’s very useful because it enables you to preview at any time the tax that you owe at the start and end of the month or quarter.</field>
        </record>

        <menuitem
            name="Taxes Report"
            parent="menu_tax_report"
            action="action_account_vat_declaration"
            id="menu_account_vat_declaration"
            icon="STOCK_PRINT"/>

    </data>
</openerp>
