8
8
<field name="type">form</field>
9
9
<field name="inherit_id" ref="account.view_account_chart"/>
10
10
<field name="arch" type="xml">
11
<field name="period_to" position="after">
12
<separator string="Inactive accounts" colspan="4"/>
12
<xpath expr="/form//field[@name='target_move']" position="before">
15
<xpath expr="/form//field[@name='period_from']" position="replace">
16
<field name="period_from"/>
19
<xpath expr="/form/group[2]" position="before">
20
<separator string="Inactive accounts" colspan="4"/>
21
<field name="show_inactive"/>
23
<separator string="Currency" colspan="4"/>
24
<field name="currency_id"/>
25
<!-- Desactivate output currency functionnality until further notice
27
<field name="output_currency_id"/>
30
<xpath expr="/form/group[2]/button[@string='Open Charts']" position="attributes">
31
<attribute name="string">Show Balances</attribute>
33
<xpath expr="/form/group[2]" position="after">
34
<group colspan="4" col="2">
35
<label string="" colspan="1"/>
36
<button icon="gtk-print" string="Export" name="button_export" type="object" colspan="1"/>
44
Redefine "Chart of Accounts" to "Balance by account" (actions and menus)
47
<record id="account.action_account_chart" model="ir.actions.act_window">
48
<field name="name">Balance by account</field>
49
<field name="res_model">account.chart</field>
50
<field name="view_type">form</field>
51
<field name="view_mode">tree,form</field>
52
<field name="view_id" ref="view_account_chart_activable"/>
53
<field name="target">new</field>
54
<field name="help">Display your company chart of accounts per fiscal year and filter by period. Have a complete tree view of all journal items per account code by clicking on an account.</field>
57
<menuitem icon="STOCK_INDENT" action="account.action_account_chart"
58
id="account.menu_action_account_tree2"
59
parent="account.final_accounting_reports" string="Balance by account" sequence="100"/>
62
Renew account move line tree when you come from balance by account and chart of account wizards
64
<record id="inherit_view_move_line_tree" model="ir.ui.view">
65
<field name="name">inherit.move.line.tree</field>
66
<field name="model">account.move.line</field>
67
<field name="type">tree</field>
68
<field name="inherit_id" ref="account.view_move_line_tree"/>
69
<field name="priority" eval="6"/>
70
<field name="arch" type="xml">
72
<!-- Delete field that are not in the right order -->
73
<xpath expr="/tree/field[@name='move_id']" position="replace">
76
<xpath expr="/tree/field[@name='ref']" position="replace">
79
<xpath expr="/tree/field[@name='invoice']" position="replace">
82
<xpath expr="/tree/field[@name='name']" position="replace">
85
<xpath expr="/tree/field[@name='partner_id']" position="replace">
88
<xpath expr="/tree/field[@name='journal_id']" position="replace">
91
<xpath expr="/tree/field[@name='debit']" position="replace">
94
<xpath expr="/tree/field[@name='credit']" position="replace">
97
<xpath expr="/tree/field[@name='account_tax_id']" position="replace">
100
<xpath expr="/tree/field[@name='analytic_account_id']" position="replace">
103
<xpath expr="/tree/field[@name='amount_currency']" position="replace">
106
<!-- Then reorder -->
107
<xpath expr="/tree/field[@name='date']" position="before">
108
<field name="journal_id"/>
109
<field name="move_id"/>
112
<field name="document_date"/>
114
<xpath expr="/tree/field[@name='account_id']" position="after">
115
<field name="partner_txt"/>
117
<xpath expr="/tree/field[@name='currency_id']" position="before">
118
<field name="debit_currency"/>
119
<field name="credit_currency"/>
121
<xpath expr="/tree/field[@name='currency_id']" position="after">
122
<field name="debit"/>
123
<field name="credit"/>
124
<field name="functional_currency_id"/>
126
<!-- Finally add missing ones -->
127
<xpath expr="/tree/field[@name='reconcile_partial_id']" position="replace">
128
<field name="output_amount_debit"/>
129
<field name="output_amount_credit"/>
130
<field name="output_currency"/>
136
<!-- Change name of result to "Balance by account" instead of "Chart of Accounts" -->
137
<record id="account.action_account_tree" model="ir.actions.act_window">
138
<field name="name">Balance by account</field>
139
<field name="res_model">account.account</field>
140
<field name="view_type">tree</field>
141
<field name="view_id" ref="account.view_account_tree"/>
142
<field name="domain">[('parent_id','=',False)]</field>
146
New Chart of Accounts menu/action/view
149
<record id="view_account_coa" model="ir.ui.view">
150
<field name="name">account.coa.form</field>
151
<field name="model">account.coa</field>
152
<field name="type">form</field>
153
<field name="arch" type="xml">
154
<form string="Chart of Accounts">
155
<field name="fiscalyear"/>
13
156
<field name="show_inactive"/>
157
<group colspan="4" col="6">
158
<button icon="gtk-cancel" special="cancel" string="Cancel"/>
159
<button icon="terp-gtk-go-back-rtl" string="Open Charts" name="button_validate" type="object"/>
165
<record id="action_account_coa" model="ir.actions.act_window">
166
<field name="name">Chart of Accounts</field>
167
<field name="res_model">account.coa</field>
168
<field name="view_type">form</field>
169
<field name="view_mode">tree,form</field>
170
<field name="view_id" ref="view_account_coa"/>
171
<field name="target">new</field>
172
<field name="help">Display your company chart of accounts per fiscal year and filter by period. Have a complete tree view fo all journal items per account code by clicking on an account.</field>
175
<menuitem icon="STOCK_INDENT" action="action_account_coa"
176
id="menu_action_account_coa_tree2"
177
parent="account.menu_finance_charts" sequence="30"/>