f0e5dcb1c137b583425b57d4515710d9094ba50e
[odoo/odoo.git] / addons / account / wizard / account_vat_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
5         <record id="view_account_vat_declaration" model="ir.ui.view">
6             <field name="name">Account Vat Declaration</field>
7             <field name="model">account.vat.declaration</field>
8             <field name="type">form</field>
9             <field name="arch" type="xml">
10             <form string="Taxes Report">
11                 <separator string="Taxes Report" colspan="4"/>
12                 <label colspan="4" nolabel="1" string="This menu prints a VAT declaration based on invoices or payments. Select one or several periods of the fiscal year. The 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."/>
13                 <newline/>
14                 <field name="chart_tax_id" widget='selection'/>
15                 <field name="fiscalyear_id"/>
16                 <!--- <field name="based_on"/>--> <!-- the option based_on 'payment' is probably not fully compliant with what the users understand with that term. So, currently, it's seems better to remove it from the view to avoid further problems -->
17                 <separator string="Periods"  colspan="4"/>
18                 <field name="period_from"  domain="[('fiscalyear_id', '=', fiscalyear_id)]"/>
19                 <field name="period_to" domain="[('fiscalyear_id', '=', fiscalyear_id)]"/>
20                 <group col="2" colspan="4">
21                     <button icon='gtk-cancel' special="cancel"  string="Cancel" />
22                     <button name="create_vat" string="Print Tax Statement" colspan="1" type="object" icon="gtk-ok"/>
23                 </group>
24             </form>
25             </field>
26         </record>
27
28         <record id="action_account_vat_declaration" model="ir.actions.act_window">
29             <field name="name">Account Vat Declaration</field>
30             <field name="type">ir.actions.act_window</field>
31             <field name="res_model">account.vat.declaration</field>
32             <field name="view_type">form</field>
33             <field name="view_mode">form</field>
34             <field name="target">new</field>
35             <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>
36         </record>
37
38         <menuitem
39             name="Taxes Report"
40             parent="menu_tax_report"
41             action="action_account_vat_declaration"
42             id="menu_account_vat_declaration"
43             icon="STOCK_PRINT"/>
44
45     </data>
46 </openerp>