[FIX] l10n_be: merge changed for intervat 8 compatiblity
[odoo/odoo.git] / addons / l10n_be / wizard / l10n_be_account_vat_declaration_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
5         <menuitem
6         id="menu_finance_belgian_statement"
7         name="Belgium Statements"
8         parent="account.menu_finance_legal_statement" groups="account.group_account_manager"/>
9
10         <record id="view_vat_declaration" model="ir.ui.view">
11             <field name="name">Vat Declaraion</field>
12             <field name="model">l1on_be.vat.declaration</field>
13             <field name="type">form</field>
14             <field name="arch" type="xml">
15                         <form string="Periodical VAT Declaration" >
16                                         <group>
17                                            <group colspan="4">
18                                                         <separator string="Declare Periodical VAT" colspan="4"/><newline/>
19                                                         <field name="tax_code_id" string="Company" widget="selection" groups="base.group_multi_company"/>
20                             <field name="period_ids" nolabel="1" colspan="4" height="200" width="550">
21                                 <tree colors="blue:state in ('draft');gray:state in ('done') " string="Period">
22                                   <field name="name"/>
23                                   <field name="code"/>
24                                   <field name="date_start"/>
25                                   <field name="date_stop"/>
26                                   <field name="special"/>
27                                   <field name="state"/>
28                                 </tree>
29                             </field>
30                                                         <newline/>
31                                                 </group>
32                                                 <group>
33                                                         <field name="ask_resitution" colspan="1"/>
34                                                         <field name="ask_payment" colspan="1"/>
35                                                         <field name="client_nihil" string="Is Last Declaration" colspan="1" /><label/>
36                                 </group>
37                                 <newline/>
38                     <group colspan="4" groups="base.group_extended">
39                         <separator string="Comments" colspan="4"/>
40                         <field colspan="4" name="comments" nolabel="1"/>
41                     </group>
42                                         <group>
43                                         <separator colspan="4"/>
44                                         <newline/>
45                                         <button special="cancel" string="Close" icon="gtk-cancel"/>
46                                         <button icon="gtk-execute"  name="create_xml" string="Create XML" type="object" default_focus="1" />
47                         </group>
48                         </group>
49                         </form>
50         </field>
51         </record>
52
53                 <record id="view_vat_save" model="ir.ui.view">
54             <field name="name">Save XML</field>
55             <field name="model">l1on_be.vat.declaration</field>
56             <field name="type">form</field>
57             <field name="arch" type="xml">
58                                 <form string="Save xml">
59                                         <group colspan="3">
60                                                 <label string="Save the File with '.xml' extension." colspan="2" align="0.0"/><newline/>
61                                                         <field name="name"/><newline/>
62                                                 <field name="file_save" readonly="True"/>
63                         <newline/>
64                                 <separator colspan="4"/><label/>
65                                         <button special="cancel" string="Ok" icon="gtk-ok"/>
66                                 </group>
67                                 </form>
68                         </field>
69                 </record>
70
71                 <record id="action_vat_declaration" model="ir.actions.act_window">
72             <field name="name">Vat Declaraion</field>
73             <field name="type">ir.actions.act_window</field>
74             <field name="res_model">l1on_be.vat.declaration</field>
75             <field name="view_type">form</field>
76             <field name="view_mode">form</field>
77             <field name="view_id" ref="view_vat_declaration"/>
78             <field name="target">new</field>
79         </record>
80
81             <menuitem
82                 name="Periodical VAT Declaration"
83                 parent="menu_finance_belgian_statement"
84                 action="action_vat_declaration"
85                 id="l10_be_vat_declaration"
86             groups="account.group_account_manager"/>
87
88     </data>
89 </openerp>