-
Notifications
You must be signed in to change notification settings - Fork 1
/
account_vat_report_view.xml
152 lines (146 loc) · 8.41 KB
/
account_vat_report_view.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?xml version='1.0' encoding='UTF-8'?>
<openerp>
<data>
<record model='ir.ui.view' id='account_vat_ledger_tree'>
<field name='name'>Account VAT Ledger</field>
<field name="model">account.vat.ledger</field>
<field name='arch' type='xml'>
<tree colors="blue:state == 'draft';gray:state == 'cancel'" string="VAT Ledger">
<field name="company_id" groups="base.group_multi_company"/>
<field name="fiscalyear_id"/>
<field name="period_id"/>
<field name="first_page"/>
<field name="last_page"/>
<field name="state"/>
</tree>
</field>
</record>
<record model='ir.ui.view' id='account_vat_ledger_form'>
<field name='name'>Account VAT Ledger</field>
<field name="model">account.vat.ledger</field>
<field name='arch' type='xml'>
<form string="VAT Ledger">
<field name="type" invisible="1"/>
<header>
<button name="action_print" string="Print" states="draft" type="object" class="oe_highlight"/>
<button name="action_print" string="Print" states="cancel,presented" type="object"/>
<button name="action_present" string="Present" states="draft" type="object" class="oe_highlight"/>
<button name="action_cancel" string="Cancel" states="draft,presented" type="object"/>
<button name="action_to_draft" string="To Draft" states="cancel" type="object"/>
<field name="state" widget="statusbar" statusbar_visible="draft,presented"/>
</header>
<sheet>
<group>
<group>
<field name="company_id" widget="selection" groups="base.group_multi_company"/>
<field name="fiscalyear_id" domain="[('company_id','=',company_id)]"/>
<field name="period_id" domain="[('fiscalyear_id','=',fiscalyear_id)]"/>
<field name="presented_ledger"/>
</group>
<group>
<field name="first_page"/>
<field name="last_page"/>
</group>
</group>
<notebook>
<page string="Journals" name="journal_ids">
<field name="journal_ids" domain="[('type','in',['purchase', 'sale', 'purchase_refund', 'sale_refund']),('company_id', 'child_of', company_id)]"/>
</page>
<page string="Invoices" name="invoices">
<field name="invoice_ids">
<tree default_order="date_invoice">
<field name="state" invisible="1"/>
<field name="date_invoice"/>
<field name="document_number"/>
<field name="commercial_partner_id"/>
<field name="responsability_id"/>
<field name="formated_vat"/>
<field name="amount_untaxed" sum="Total"/>
<field name="amount_tax" sum="Total"/>
<field name="amount_total" sum="Total"/>
</tree>
</field>
</page>
<page string="Summary" name="summary">
<label for="document_class_ids"/>
<field name="document_class_ids" context="{'vat_ledger_id': active_id}">
<tree>
<field name="name"/>
<field name="amount_untaxed" sum="Total"/>
<field name="amount_tax" sum="Total"/>
<field name="amount_total" sum="Total"/>
</tree>
</field>
<label for="responsability_ids"/>
<field name="responsability_ids" context="{'vat_ledger_id': active_id}">
<tree>
<field name="name"/>
<field name="amount_untaxed" sum="Total"/>
<field name="amount_tax" sum="Total"/>
<field name="amount_total" sum="Total"/>
</tree>
</field>
<label for="vat_tax_code_ids"/>
<field name="vat_tax_code_ids" context="{'vat_ledger_id': active_id}">
<tree>
<field name="name"/>
<field name="amount_untaxed" sum="Total"/>
<field name="amount_tax" sum="Total"/>
</tree>
</field>
<!-- <label for="other_tax_code_ids"/>
<field name="other_tax_code_ids" context="{'vat_ledger_id': active_id}">
<tree>
<field name="name"/>
<field name="amount_untaxed" sum="Total"/>
<field name="amount_tax" sum="Total"/>
</tree>
</field> -->
<group>
<group attrs="{'invisible':[('other_taxes_amount','=',False)]}">
<label for="other_taxes_base" string="Other Taxes"/>
<div>
(<field name="other_taxes_base" class="oe_inline"/>)
<field name="other_taxes_amount" class="oe_inline"/>
</div>
</group>
</group>
</page>
<page string="Notes" name="notes">
<field name="note"/>
</page>
</notebook>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/>
<field name="message_ids" widget="mail_thread"/>
</div>
</form>
</field>
</record>
<record id="action_account_purchase_vat_ledger" model="ir.actions.act_window">
<field name="name">Purchases VAT Ledger</field>
<field name="res_model">account.vat.ledger</field>
<field name="context">{'default_type':'purchase'}</field>
<field name="domain">[('type','=','purchase')]</field>
</record>
<record id="action_account_sale_vat_ledger" model="ir.actions.act_window">
<field name="name">Sales VAT Ledger</field>
<field name="res_model">account.vat.ledger</field>
<field name="context">{'default_type':'sale'}</field>
<field name="domain">[('type','=','sale')]</field>
</record>
<menuitem id="account_vat_ledger_parent_menu"
name="VAT Ledgers"
parent="account.menu_finance_periodical_processing"
sequence="30"/>
<menuitem id="menu_account_purchase_vat_ledger"
action="action_account_purchase_vat_ledger"
parent="account_vat_ledger_parent_menu"
sequence="20"/>
<menuitem id="menu_account_sale_vat_ledger"
action="action_account_sale_vat_ledger"
parent="account_vat_ledger_parent_menu"
sequence="10"/>
</data>
</openerp>