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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
|
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data noupdate="0">
<!-- VISTAS -->
<record model="ir.ui.view" id="view_ifrs_ifrs_tree">
<field name="name">ifrs.ifrs.tree</field>
<field name="model">ifrs.ifrs</field>
<field name="arch" type="xml">
<tree string="International Financial Reporting Standards">
<field name="name" />
<field name="company_id" />
<field name="title" />
<field name="fiscalyear_id" />
<field name="state" />
</tree>
</field>
</record>
<record model="ir.ui.view" id="view_ifrs_ifrs_form">
<field name="name">ifrs.ifrs.form</field>
<field name="model">ifrs.ifrs</field>
<field name="arch" type="xml">
<form string="International Financial Reporting Standards" version="7.0">
<header>
<button string="Compute" name='compute' type='object' icon='gtk-execute' class="oe_inline_header"/>
<label for='help'/>
<field name='help'/>
<field name="state" widget="statusbar" statusbar_visible="draft,ready,done,cancel" class="oe_inline_header" />
</header>
<group>
<group>
<group colspan='2' attrs="{'invisible':[('help','=',False)]}">
<i><label string='The name that this report will bear within the system. This name could be as descriptive as you want in order to improve the useability of it.'/></i>
</group>
<field name="name" />
<group colspan='2' attrs="{'invisible':[('help','=',False)]}">
<i><label string='Some times it is useful that each report has its own code because doing so will render the report easier to find'/></i>
</group>
<field name="code" />
<group colspan='2' attrs="{'invisible':[('help','=',False)]}">
<i><label string='The Title is the one that will be printed in the Heading of your Report. It is important to notice, that the Title is multilanguage, notice the little flag when editing the form. So you can Set the Title in as many languagues as you have them deployed in your system. If Your Preferred Language is English right now, then set the Title in English. To Set it in, e.g. Spanish, change your Preferred Language to Spanish and Set your Title Again. Those Languages have to be deployed first to be used.'/></i>
</group>
<field name="title" />
</group>
<group>
<group colspan='2' attrs="{'invisible':[('help','=',False)]}">
<i><label string='Each report has to be related to a Company. It is a mandatory field not an option. This is due to the fact that you will be using Accounting Accounts that are only related to the company you set Here.'/></i>
</group>
<field name="company_id" on_change='onchange_company_id(company_id)' required="1"/>
<group colspan='2' attrs="{'invisible':[('help','=',False)]}">
<i><label string='The currency set below is not an option nor you will be able to set its valued. It is automatically set when you select the company above. Thus the currency in this report is regarding the one in the company of the report. You can later set you own currency when print the report.'/></i>
</group>
<field name="currency_id" required="1" readonly="1"/>
<group colspan='2' attrs="{'invisible':[('help','=',False)]}">
<i><label string='A Fiscal Year is required to compute the values that will be shown in the report as a preview in the lines below'/></i>
</group>
<field name="fiscalyear_id" required="1"/>
</group>
</group>
<notebook colspan='6'>
<page string='Report Lines'>
<group colspan='2' attrs="{'invisible':[('help','=',False)]}">
<b><label string='You have to fill the field below with Lines that retrieves values from your Accounting Accounts'/></b>
</group>
<group colspan='2' attrs="{'invisible':[('help','=',False)]}">
<label string='There are four types of Lines to fill with the report:'/>
</group>
<group colspan='2' attrs="{'invisible':[('help','=',False)]}">
<ul><label string='Abstract: This type is the one you have to use to create label that just get printed in the report. This line does not bear values at all and do not make computation'/></ul>
<ul><label string='Detail: This type is the one that is in direct contact with Accounting Accounts. You can select View Accounts (Summarized Accounts) and/or Normal Accounts (Movement Accounts)'/></ul>
<ul><label string='Total: This type is the one that summarize "Detail" Lines, you can even do mathematical operations with them'/></ul>
<ul><label string='Constant: This type is the one that just bears constant variable like Days of Period, Periods of Fiscal Year or Month of FiscalYear'/></ul>
</group>
<field
name="ifrs_lines_ids"
nolabel="1"
context="{'ifrs_help':help, 'ifrs_id':active_id}"
colspan="4">
<tree string="IFRS Lines">
<field name="id" />
<field name="priority" />
<field name="name" />
<field name="type" />
<field name="cons_ids" />
<field name="total_ids" />
<field name="operand_ids" />
<field name="amount" />
<field name="value" />
<field name="invisible" />
</tree>
<form string="IFRS Lines">
<header>
<label for='help'/>
<field name='help'/>
</header>
<group colspan='4' col='4'>
<group colspan='4'>
<group string='Line Name' colspan='4' attrs="{'invisible':[('help','=',False)]}">
<i><label string='This field will be the label that will be printed, if "invisible" is set to False, in your report. If you want a blank line in your report Just fill at least with one blank space. The name of your lines is traslatable too, so you can switch to your Preferred Language and write the Traslation for your Line.'/></i>
</group>
<field name="name" colspan='2'/>
<group string='Line Type' colspan='4' attrs="{'invisible':[('help','=',False)]}">
<i><label string='This option define the behavior this lines will have within the report'/></i>
</group>
<group colspan='4' attrs="{'invisible':[('help','=',False)]}">
<label string='There are four types of Lines to fill with the report:'/>
</group>
<field name="type" colspan='2'/>
<group colspan='4' attrs="{'invisible':[('help','=',False)]}">
<label colspan='4' string='Abstract: This type is the one you have to use to create label that just get printed in the report. This line does not bear values at all and do not make computation' attrs="{'invisible':[('type','!=','abstract')]}"/>
<label colspan='4' string='Detail: This type is the one that is in direct contact with Accounting Accounts. You can select View Accounts (Summarized Accounts) and/or Normal Accounts (Movement Accounts)' attrs="{'invisible':[('type','!=','detail')]}"/>
<label colspan='4' string='Total: This type is the one that summarize "Detail" Lines, you can even do mathematical operations with them' attrs="{'invisible':[('type','!=','total')]}"/>
<label colspan='4' string='Constant: This type is the one that just bears constant variable like Days of Period, Periods of Fiscal Year or Month of FiscalYear' attrs="{'invisible':[('type','!=','constant')]}"/>
</group>
</group>
<group colspan='4' col='4'>
<group string='Sequence' colspan='2' attrs="{'invisible':[('help','=',False)]}">
<i><label string='Set the sequence for this line, the sequence will represent the position that this line will have within the report. It is advisable that you select a number multiple of ten thus if some new line in between your old lines is created it could fit among them. Each sequence should be unique within the report.'/></i>
</group>
<group string='Invisible Line' colspan='2' attrs="{'invisible':[('help','=',False)]}">
<i><label string='By setting this field to "True" will avoid this line from printing in your report. It is useful to set some lines to invisible when using them to make some computations but you do not want them to appear in the report printing.'/></i>
</group>
<field name="sequence" colspan='2' on_change='onchange_sequence(sequence)'/>
<field name="invisible" />
<group string='Line Amount' colspan='2' attrs="{'invisible':['|',('type','=','abstract'),('help','=',False)]}">
<group colspan='2' >
<i><label string='This field will summarize the results that are carried on for the Detail, Total & Constant Lines. Its value is modified by the "Change Sign" Field. Be aware!'/></i>
</group>
<group colspan='2' >
<label colspan='2' string='When the line is "Detail" type, it will summarize the accounts that were selected in the field "Consolidated Accounts"'/>
<label colspan='2' string='When the line is "Total" type, it will perform the operations that are considered in the "Operator" & "Make Comparison" fields, taking into account the selections for the operands'/>
<label colspan='2' string='When the line is "Abstract" type, it will not perform any computation'/>
<label colspan='2' string='When the line is "Constant" type, it will only show the constant values'/>
</group>
</group>
<group string='Change Sign to Amount' colspan='2' attrs="{'invisible':['|',('type','=','abstract'),('help','=',False)]}">
<i><label string='If you check the field "Change Sign to Amount", the initial value of the amount will be multiplied by minus one (-1). So a negative number will become a positive number and conversely. Sometimes you are willing to change a sign to a Financial Balance due to conventions.'/></i>
</group>
<field name="amount" colspan='2' attrs="{'invisible':[('type','=','abstract')]}"/>
<field name="inv_sign" colspan='2' attrs="{'invisible':[('type','=','abstract')]}"/>
<group string='Constant Type' colspan='4' attrs="{'invisible':['|',('type','!=','constant'),('help','=',False)]}">
<i><label string='This field will allow you to take into account constant values that are related to the Accounting Fiscal Year like: Days of Period, Periods of Fiscal Year or Month of FiscalYear'/></i>
</group>
<field name="constant_type" colspan='4' attrs="{'required':[('type','=','constant')],'invisible':[('type','!=','constant')]}" />
<group colspan='2' attrs="{'invisible':['|',('type','!=','detail'),('help','=',False)]}">
<group string='Accounting Span' colspan='2'>
<i><label string='In this field, regarding a time span, you will indicate which (initial, variation, ending) amount from the accounts your are consulting on is the one you want for the period you are asking. This field is only available when lines are of type "Detail". Available options are:'/></i>
</group>
<group colspan='2'>
<label colspan='2' string='Initial Values: Will yield the values at the beginning of the period you are consulting on'/>
<label colspan='2' string='Variations in Period: Will yield the values throughout the period you are consulting on'/>
<label colspan='2' string='Ending Values: Will yield the values at the end of the period you are consulting on'/>
</group>
</group>
<group colspan='2' attrs="{'invisible':['|',('type','!=','detail'),('help','=',False)]}">
<group string='Accounting Value' colspan='2'>
<i><label string='In this field, regarding a value, you will indicate which (debit, credit, balance) amount from the accounts your are consulting on is the one you want for the period you are asking. This field is only available when lines are of type "Detail". Available options are:'/></i>
</group>
<group colspan='2'>
<label colspan='2' string='Debit: Will yield only the Debits for the accounts being consulted within the "Accounting Span" being asked'/>
<label colspan='2' string='Credit: Will yield only the Credits for the accounts being consulted within the "Accounting Span" being asked'/>
<label colspan='2' string='Balance: Will yield the Balances for the accounts being consulted within the "Accounting Span" being asked'/>
</group>
</group>
<field
colspan='2'
name="acc_val"
attrs="{'invisible':[('type','!=','detail')], 'required':[('type','=','detail')]}"/>
<field
colspan='2'
name="value"
attrs="{'invisible':[('type','!=','detail')], 'required':[('type','=','detail')]}"/>
<group string='Arithmetic Operator' colspan='2' attrs="{'invisible':['|',('type','!=','total'),('help','=',False)]}">
<i><label string='If you are seen this Field it is because you are setting this line as "Total" Type. By Default All the lines within the same operand are summarized. If you want to perform Subtraction, Product, Division or Percentual Computations, you will have to fill both the First Operand & the Second Operand. If "First Operand Only" operator is defined only the addition of the Elements in the First Operand will be performed and Elements in the Second Operand will be depreciated'/></i>
</group>
<group string='Comparison Type' colspan='2' attrs="{'invisible':['|',('type','!=','total'),('help','=',False)]}">
<i><label string='This concept is somewhat more advanced. It will perform a Comparison between the value resulted for the period being asked and the value for this same line but for the pretty previous period to the one being asked. This operation is perform after the Arithmetic Operator has been performed. If not comparison is defined only the value yield by the Arithmetic Operator will be given.'/></i>
</group>
<field
name="operator"
colspan='2'
attrs="{'invisible':[('type','!=','total')], 'required':[('type','=','total')]}" on_change = 'onchange_type_without(type, operator)'/>
<field
name="comparison"
colspan='2'
attrs="{'invisible':[('type','!=','total')], 'required':[('type','=','total')]}"/>
<separator string='Consolidated Accounts' colspan='2' attrs="{'invisible':[('type','!=','detail')]}"/>
<separator string='Analytic Accounts' colspan='2' attrs="{'invisible':[('type','!=','detail')]}"/>
<group colspan='2' attrs="{'invisible':['|',('type','!=','detail'),('help','=',False)]}">
<i><label string='This field is to be filled with Accounting Accounts. You can use Accounts of "View" Type, if you want to grasp a big amount of accounts, or you can use Move Accounts if you want to pinpoint in nitty-gritty detail which Accounts you want to regard in this line. Be aware that using Move Account could be cumbersome when you have a line that depends on many Accounts, it is better to consolidate them and then come back here and use your consolidated account.'/></i>
</group>
<group colspan='2' attrs="{'invisible':['|',('type','!=','detail'),('help','=',False)]}">
<i><label string='This field is to be filled with Analytic Accounts. Analytic Accounts serve as a way of filtering data from one Accounting Account. There are chances that you use one single account for multiple purposes though you have been using for a while Analytic Accounts to break down the details regarding that Account. Hence you can use a combination of Accounting Account and Analytic Accounts to retrieve valuable data from the Accounting system to your Line Report. Be aware that all the Accounting Account selected previously will be affected by the Analytic Accounts selected here. If you want one-to-one matches you should create as many lines as you want to fulfill your requirement.'/></i>
</group>
<field
colspan='2'
name="cons_ids"
nolabel='1'
attrs="{'invisible':[('type','!=','detail')]}">
<!--attrs="{'invisible':[('type','!=','detail')], 'required':[('type','=','detail')]}">-->
<tree>
<field name='code'/>
<field name='name'/>
<field name='type'/>
<field name='company_id'/>
</tree>
</field>
<field colspan='2' name="analytic_ids" nolabel='1' attrs="{'invisible':[('type','!=','detail')]}">
<tree>
<field name='code'/>
<field name='name'/>
<field name='type'/>
</tree>
</field>
<separator string='First Operand' colspan='2' attrs="{'invisible':[('type','!=','total')]}"/>
<separator string='Second Operand' colspan='2' attrs="{'invisible':[('type','!=','total')]}"/>
<group colspan='2' attrs="{'invisible':['|',('type','!=','total'),('help','=',False)]}">
<i><label string='This is the First Operand where you can summarize "Detail" Lines and even other Lines of Type "Total". All the lines you Select in this field will become the sum of them all. To perform other Arithmetic Operations like subtraction or product, fill this field with the "First Operand" and the Second Operand field with the "Second Operand" and do not forget to select you arithmetic operation in the "Arithmetic Operator" Field.'/></i>
</group>
<group colspan='2' attrs="{'invisible':['|',('type','!=','total'),('help','=',False)]}">
<i><label string='This is the Second Operand, here as in the First Operand, you will be able to summarize "Detail" Lines and Lines of Type "Total" as well. All the lines you Select in this field will become the sum of them all, and after that the result will be used as the Second Operand for the Arithmetic Operator previously selected after the Arithmetic Operation is performed the ultimate result will be shown as the Amount of the Line. If "First Operand Only" arithmetic operator is selected this field will be disregarded.'/></i>
</group>
<field
name="total_ids" widget="many2many"
nolabel="1" colspan='2'
domain="[('type','not in',('abstract','constant')),('id','!=',id),'|',('ifrs_id','=',parent.id),('ifrs_id','in',parent.ifrs_ids[0][2])]"
attrs="{'invisible':[('type','!=','total')]}">
<!--attrs="{'invisible':[('type','!=','total')], 'required':[('type','=','total')]}">-->
<tree>
<field name='ifrs_id'/>
<field name='priority'/>
<field name='name'/>
<field name='type'/>
<field name='amount'/>
</tree>
</field>
<field
name="operand_ids" widget="many2many"
nolabel='1' colspan='2'
domain="[('type','not in',('abstract','constant')),('id','!=',id),'|',('ifrs_id','=',parent.id),('ifrs_id','in',parent.ifrs_ids[0][2])]"
attrs="{'invisible':[('type','!=','total')], 'readonly':[('operator','=','without')], 'required':[('type','=','total'),('operator','!=','without')]}">
<!--attrs="{'invisible':[('type','!=','total')], 'readonly':[('operator','=','without')], 'required':[('type','=','total'),('operator','!=','without')]}">-->
<tree>
<field name='ifrs_id'/>
<field name='priority'/>
<field name='name'/>
<field name='type'/>
<field name='amount'/>
</tree>
</field>
</group>
</group>
<separator string='Notes & Comments' colspan='2' />
<field name="comment" colspan='4' nolabel='1'/>
<field name="company_id" colspan='4' nolabel='1' readonly='1'/>
<field name="priority" invisible='1'/>
</form>
</field>
</page>
<page string='Based on Other Reports'>
<field
name='ifrs_ids'
nolabel='1'
domain="[('id', '!=', [active_id])]"
/>
</page>
<page string='Other Info'>
<field name="description" />
</page>
</notebook>
</form>
</field>
</record>
<record id="view_board_search" model="ir.ui.view">
<field name="name">ifrs.lines.search</field>
<field name="model">ifrs.lines</field>
<field name="arch" type="xml">
<search string="IFRS Lines Search">
<filter
string="Report"
icon="terp-blue-folder"
name="group_report"
context="{'group_by':'ifrs_id'}"/>
<filter
string="Type"
icon="terp-blue-folder"
name="group_type"
context="{'group_by':'type'}"/>
</search>
</field>
</record>
<record model="ir.ui.view" id="view_ifrs_lines_form">
<field name="name">ifrs.lines.form</field>
<field name="model">ifrs.lines</field>
<field name="arch" type="xml">
<form string="IFRS Line">
<group col="6" colspan="4">
<field name="name" />
<field name="sequence"></field>
<field name="type" />
<field name="amount"></field>
<field name="invisible"></field>
<field name="ifrs_id"></field>
<field name="comment"></field>
</group>
</form>
</field>
</record>
<record model="ir.ui.view" id="view_ifrs_lines_tree">
<field name="name">ifrs.lines.tree</field>
<field name="model">ifrs.lines</field>
<field name="arch" type="xml">
<tree string="IFRS Line">
<field name="ifrs_id" invisible='1'/>
<field name="priority"/>
<field name="name" />
<field name="type" />
</tree>
</field>
</record>
<!-- ACCIONES -->
<record model="ir.actions.act_window" id="action_ifrs_ifrs_form">
<field name="name">IFRS</field>
<field name="res_model">ifrs.ifrs</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<record model="ir.actions.act_window" id="action_ifrs_lines_form">
<field name="name">IFRS Lines</field>
<field name="res_model">ifrs.lines</field>
<field name="view_type">form</field>
<field name="view_mode">search</field>
<!-- <field name="domain">[('type','=','total')]</field>-->
</record>
<!-- MENUS -->
<menuitem
id="menu_parent_ifrs"
name="IFRS"
/>
<menuitem
id="menu_ifrs_ifrs"
name="IFRS"
parent="menu_parent_ifrs"
/>
<!-- SUB-MENU -->
<menuitem
id="sub_menu_ifrs_ifrs"
name="IFRS"
parent="menu_ifrs_ifrs"
action="action_ifrs_ifrs_form"
/>
</data>
</openerp>
|