~enlightx-deactivatedaccount/openobject-italia/7.0-fix-1271907

« back to all changes in this revision

Viewing changes to account_vat_period_end_statement/account_view.xml

[add] account_vat_period_end_statement

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<openerp>
 
3
    <data>
 
4
 
 
5
<!--    Statement   -->
 
6
 
 
7
        <record id="view_account_vat_period_end_statement" model="ir.ui.view">
 
8
            <field name="name">account.vat.period.end.statement.form</field>
 
9
            <field name="model">account.vat.period.end.statement</field>
 
10
            <field name="type">form</field>
 
11
            <field name="arch" type="xml">
 
12
                <form string="Vat statement">
 
13
                    <field name="journal_id"   widget="selection" select="1"/>
 
14
                    <group col="2" colspan="2">
 
15
                        <field name="date"  select="1" />
 
16
                        <!-- TODO check if it's manageable
 
17
                        <button name="open_chart_of_taxes" string="View chart of taxes for selected period" type="object"/>
 
18
                        -->
 
19
                    </group>
 
20
                    <field name="move_id"  select="1"/>
 
21
                    <field name="payment_term_id"  select="1"/>
 
22
                    <notebook colspan="4">
 
23
                        <page string="Periods">
 
24
                            <button type='action' name="%(action_add_period)d" string="Add period" colspan="2" attrs="{'readonly': [('state', 'in', ('confirmed', 'paid'))]}"></button>
 
25
                            <button type='action' name="%(action_remove_period)d" string="Remove period" colspan="2" attrs="{'readonly': [('state', 'in', ('confirmed', 'paid'))]}"></button>
 
26
                            <field name="period_ids" colspan="4" nolabel="1" readonly="1"/>
 
27
                        </page>
 
28
                        <page string="Accounts">
 
29
                            <group colspan="4" col="3">
 
30
                                <group col="2" colspan="3">
 
31
                                    <field name="debit_vat_account_line_ids" nolabel="1"  >
 
32
                                        <tree editable="bottom" string="Debit Account Lines">
 
33
                                            <field name="tax_code_id" />
 
34
                                            <field name="account_id" />
 
35
                                            <field name="amount" />
 
36
                                       </tree>
 
37
                                        <form>
 
38
                                            <field name="tax_code_id" />
 
39
                                            <field name="account_id" />
 
40
                                            <field name="amount" />
 
41
                                       </form>
 
42
                                    </field>
 
43
                                    <field name="credit_vat_account_line_ids" nolabel="1">
 
44
                                        <tree editable="bottom" string="Credit Account Lines">
 
45
                                            <field name="tax_code_id" />
 
46
                                            <field name="account_id" />
 
47
                                            <field name="amount" />
 
48
                                       </tree>
 
49
                                        <form>
 
50
                                            <field name="tax_code_id" />
 
51
                                            <field name="account_id" />
 
52
                                            <field name="amount" />
 
53
                                       </form>
 
54
                                    </field>
 
55
                                </group>
 
56
                                <separator colspan="3" string="Previous Credits VAT"/>
 
57
                                <field name="previous_credit_vat_account_id" attrs="{'required':[('previous_credit_vat_amount','!=',0)]}"/>
 
58
                                <field name="previous_credit_vat_amount" nolabel="1"/>
 
59
                                <separator colspan="3" string="Previous Debits VAT"/>
 
60
                                <field name="previous_debit_vat_account_id" attrs="{'required':[('previous_debit_vat_amount','!=',0)]}"/>
 
61
                                <field name="previous_debit_vat_amount" nolabel="1"/>
 
62
                                <separator colspan="3" string="Other VAT Credits / Debits or Tax Compensations (Positive amounts for credits, negative for debits)"/>
 
63
                                <field name="generic_vat_account_line_ids" colspan="3" nolabel="1">
 
64
                                    <tree editable="bottom" string="Account Lines">
 
65
                                        <field name="account_id" on_change="on_change_vat_account_id(account_id)"/>
 
66
                                        <field name="amount" />
 
67
                                   </tree>
 
68
                                    <form >
 
69
                                        <field name="account_id" />
 
70
                                        <field name="amount" />
 
71
                                   </form>
 
72
                                </field>
 
73
                            </group>
 
74
                            <button type="object" name="compute_amounts" string="Recompute amounts" states="draft"></button>
 
75
                        </page>
 
76
                        <page string="Tax Authority">
 
77
                            <field name="authority_partner_id"  select="1" on_change="on_change_partner_id(authority_partner_id)"/>
 
78
                            <field name="authority_vat_amount" />
 
79
                            <field name="authority_vat_account_id"  select="1" />
 
80
                            <field name="residual" />
 
81
                            <separator string="Payments" colspan="4"/>
 
82
                            <field name="payment_ids" nolabel="1" colspan="4"/>
 
83
                        </page>
 
84
                    </notebook>
 
85
                    <field name="state"  select="1"/>
 
86
                    <field name="reconciled"/>
 
87
                    <button name="create_move" states="draft" string="Create Move" colspan="2"/>
 
88
                    <button name="set_draft" states="confirmed,paid" string="Set to draft" colspan="2"/>
 
89
               </form>
 
90
            </field>
 
91
        </record>
 
92
        <record id="view_account_vat_period_end_statement_tree" model="ir.ui.view">
 
93
            <field name="name">account.vat.period.end.statement.tree</field>
 
94
            <field name="model">account.vat.period.end.statement</field>
 
95
            <field name="type">tree</field>
 
96
            <field name="arch" type="xml">
 
97
                <tree string="Vat statement">
 
98
                    <field name="date" />
 
99
                    <field name="journal_id" />
 
100
                    <field name="authority_vat_amount"   />
 
101
                    <field name="state" />
 
102
               </tree>
 
103
            </field>
 
104
        </record>
 
105
 
 
106
        <record id="action_account_vat_period_end_statement" model="ir.actions.act_window">
 
107
            <field name="name">Vat statement</field>
 
108
            <field name="res_model">account.vat.period.end.statement</field>
 
109
        </record>
 
110
 
 
111
        <menuitem id="menu_account_vat_period_end_statement" action="action_account_vat_period_end_statement"
 
112
            name="VAT statements" parent="account.menu_account_end_year_treatments"/>
 
113
 
 
114
<!--    tax code   -->
 
115
 
 
116
        <record id="view_tax_code_form" model="ir.ui.view">
 
117
            <field name="name">account.tax.code.form</field>
 
118
            <field name="model">account.tax.code</field>
 
119
            <field name="inherit_id" ref="account.view_tax_code_form"></field>
 
120
            <field name="type">form</field>
 
121
            <field name="arch" type="xml">
 
122
                <separator string="Description" position="before">
 
123
                    <group colspan="2" col="2">
 
124
                        <separator string="VAT statement" colspan="4"/>
 
125
                        <field name="vat_statement_account_id"/>
 
126
                        <field name="vat_statement_type"/>
 
127
                        <field name="vat_statement_sign"/>
 
128
                    </group>
 
129
                </separator>
 
130
            </field>
 
131
        </record>
 
132
 
 
133
    </data>
 
134
</openerp>