<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record id="vat_report_view" model="ir.ui.view">
            <field name="name">VAT Declaration Report</field>
            <field name="model">vat.declaration.report</field>
            <field name="arch" type="xml">
                <form string="Print Tax Statements" version="7.0">
                   <group col="4">
                       <field name="tax_code_id" widget="selection"/>
                       <field name="type"/>
                       <field name="period_id" widget="selection"/>
                       <field name="to_period_id" widget="selection"/>
                   </group>
                   <footer>
                        <button name="print_vat_declaration_report" string="Print Tax Statements" type="object" class="oe_highlight"  />
                        or
                        <button string="Cancel" class="oe_link" special="cancel" />
                   </footer>
                 </form>
            </field>
        </record>

        <record id="action_vat_report" model="ir.actions.act_window">
            <field name="name">VAT Declaration Report</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">vat.declaration.report</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="vat_report_view"/>
            <field name="target">new</field>
        </record>

       <menuitem id="legal_lu" parent="account.menu_finance_legal_statement" name="Luxembourg"/>
       <menuitem name="VAT Declaration" id="legal_lu_vat" parent="legal_lu" action="action_vat_report"/>

    </data>

</openerp>
