1
<?xml version="1.0" encoding="utf-8"?>
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"/>
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"/>
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" />
38
<field name="tax_code_id" />
39
<field name="account_id" />
40
<field name="amount" />
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" />
50
<field name="tax_code_id" />
51
<field name="account_id" />
52
<field name="amount" />
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" />
69
<field name="account_id" />
70
<field name="amount" />
74
<button type="object" name="compute_amounts" string="Recompute amounts" states="draft"></button>
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"/>
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"/>
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">
99
<field name="journal_id" />
100
<field name="authority_vat_amount" />
101
<field name="state" />
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>
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"/>
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"/>