4
# OpenERP - Account balance reporting engine
5
# Copyright (C) 2009 Pexego Sistemas Informáticos. All Rights Reserved
8
# This program is free software: you can redistribute it and/or modify
9
# it under the terms of the GNU General Public License as published by
10
# the Free Software Foundation, either version 3 of the License, or
11
# (at your option) any later version.
13
# This program is distributed in the hope that it will be useful,
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
# GNU General Public License for more details.
18
# You should have received a copy of the GNU General Public License
19
# along with this program. If not, see <http://www.gnu.org/licenses/>.
23
Views for the account balance reports and its lines.
25
Author: Borja López Soilán (Pexego) - borjals@pexego.es
31
<!--**** Report views ***********************************************-->
33
<!-- Report form view -->
34
<record model="ir.ui.view" id="view_account_balance_reporting_form">
35
<field name="name">account.balance.reporting.form</field>
36
<field name="model">account.balance.reporting</field>
37
<field name="type">form</field>
38
<field name="arch" type="xml">
39
<form string="Account balance report">
40
<field name="name" select="1" colspan="4"/>
41
<notebook colspan="4">
42
<page string="Configuration">
43
<group string="Parameters" colspan="4">
45
<field name="company_id" select="1"/>
46
<field name="template_id" select="1"/>
49
<group string="Fiscal year 1" colspan="2">
50
<field name="current_fiscalyear_id" select="2" colspan="4" nolabel="1"/>
51
<field name="current_period_ids" colspan="4" nolabel="1" domain="[('fiscalyear_id','=',current_fiscalyear_id)]"/>
53
<group string="Fiscal year 2" colspan="2">
54
<field name="previous_fiscalyear_id" colspan="4" nolabel="1"/>
55
<field name="previous_period_ids" colspan="4" nolabel="1" domain="[('fiscalyear_id','=',previous_fiscalyear_id)]"/>
59
<group string="State" colspan="4">
60
<field name="state" select="2" readonly="1"/>
61
<field name="calc_date" select="2" readonly="1"/>
64
<button name="calculate_action" type="object" string="Calculate" states="draft"/>
66
<button name="%(wiz_account_balance_reporting_calculate)d" type="action" string="Calculate" states="draft" icon="gtk-execute"/>
68
<button name="confirm" string="Confirm" states="calc_done" icon="gtk-apply"/>
69
<button name="cancel" string="Cancel" states="calc_done,done" icon="gtk-cancel"/>
70
<button name="action_recover" string="Draft" type="object" states="canceled" icon="gtk-undo"/>
74
<field name="line_ids" nolabel="1" context="{'report_id':active_id}">
75
<tree string="Report lines" editable="bottom"
76
colors="blue:css_class in ('l1')">
77
<field name="code" select="1" colspan="1"/>
78
<field name="name" select="1" colspan="2"/>
79
<field name="notes" colspan="4"/>
80
<field name="current_value" colspan="2"/>
81
<field name="previous_value" colspan="2"/>
82
<field name="report_id" invisible="1"/>
83
<field name="parent_id" select="1" colspan="1" domain="[('report_id','=',report_id)]"/>
84
<field name="sequence" select="1" colspan="1"/>
85
<field name="css_class" select="1" colspan="1"/>
87
<form string="Report line">
89
<field name="code" select="1" colspan="1"/>
90
<field name="name" select="1" colspan="3"/>
93
<field name="report_id" select="1"/>
94
<field name="parent_id" select="1" domain="[('report_id','=',report_id)]"/>
96
<group string="Values" colspan="4">
97
<field name="notes" colspan="4"/>
98
<field name="current_value" colspan="2"/>
99
<field name="previous_value" colspan="2"/>
101
<group string="Style" colspan="4">
102
<field name="sequence" colspan="1"/>
103
<field name="css_class" colspan="1"/>
113
<!-- Report tree view -->
114
<record model="ir.ui.view" id="view_account_balance_reporting_tree">
115
<field name="name">account.balance.reporting.tree</field>
116
<field name="model">account.balance.reporting</field>
117
<field name="type">tree</field>
118
<field name="arch" type="xml">
119
<tree string="Account balance reports">
120
<field name="name" select="1"/>
121
<field name="company_id" select="1"/>
122
<field name="template_id" select="2" colspan="4"/>
123
<field name="current_fiscalyear_id" select="1"/>
124
<field name="previous_fiscalyear_id" select="2"/>
125
<field name="state" colspan="4" select="2"/>
131
<!--*** Report lines views ******************************************-->
133
<!-- Report line form view -->
134
<record model="ir.ui.view" id="view_account_balance_reporting_line_form">
135
<field name="name">account.balance.reporting.line.form</field>
136
<field name="model">account.balance.reporting.line</field>
137
<field name="type">form</field>
138
<field name="arch" type="xml">
139
<form string="Account balance report line">
141
<field name="code" select="1" colspan="1"/>
142
<field name="name" select="1" colspan="3"/>
145
<field name="report_id" select="1"/>
146
<field name="parent_id" select="1"/>
148
<group string="Values" colspan="4">
149
<field name="current_value" colspan="2"/>
150
<field name="previous_value" colspan="2"/>
152
<group string="Style" colspan="4">
153
<field name="sequence" colspan="1"/>
154
<field name="css_class" colspan="1"/>
160
<!-- Line tree view -->
161
<record model="ir.ui.view" id="view_account_balance_reporting_line_tree">
162
<field name="name">account.balance.reporting.line.tree</field>
163
<field name="model">account.balance.reporting.line</field>
164
<field name="type">tree</field>
165
<field name="arch" type="xml">
166
<tree string="Account balance report lines">
167
<field name="sequence" select="1" colspan="1"/>
168
<field name="code" select="1"/>
169
<field name="name" select="1"/>
170
<field name="report_id" select="1"/>
171
<field name="parent_id" select="1"/>
172
<field name="sequence" select="1" colspan="1"/>
173
<field name="css_class" select="1" colspan="1"/>
179
<!--*** Menus and windows *******************************************-->
181
<record model="ir.actions.act_window" id="action_view_account_balance_reporting">
182
<field name="name">Account balance reports</field>
183
<field name="type">ir.actions.act_window</field>
184
<field name="res_model">account.balance.reporting</field>
185
<field name="view_type">form</field>
186
<field name="view_mode">tree,form</field>
187
<field name="view_id" ref="view_account_balance_reporting_tree"/>
190
<menuitem id="menu_account_balance_reporting"
191
name="Account balance reports"
192
parent="account.menu_finance_legal_statement"/>
194
<menuitem id="menu_account_balance_reporting_reports"
196
parent="menu_account_balance_reporting"
197
action="action_view_account_balance_reporting"/>