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
|
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="trial_balance_period_wizard_view" model="ir.ui.view">
<field name="name">Trial Balance per Period</field>
<field name="model">trial.balance.period.wizard</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Report Options">
<separator string="Trial Balance per Period" colspan="4"/>
<label nolabel="1" colspan="4" string="Excel report of the Trial Balance per Period."/>
<newline/>
<field name="chart_account_id" widget="selection" on_change="onchange_chart_id(chart_account_id, context)"/>
<field name="company_id" invisible="1"/>
<field name="fiscalyear_id" domain="[('company_id','=',company_id)]" on_change="onchange_fiscalyear_id(fiscalyear_id, context)"/>
<field name="target_move"/>
<field name="level"/>
<newline/>
<separator string="Periods" colspan="4"/>
<field name="period_from" domain="[('fiscalyear_id', '=', fiscalyear_id)]" colspan="4"/>
<field name="period_to" domain="[('fiscalyear_id', '=', fiscalyear_id)]" colspan="4"/>
<notebook tabpos="up" colspan="4">
<page string="Journals" name="journal_ids">
<field name="journal_ids" colspan="4" nolabel="1"/>
</page>
<page string="Accounts" name="account_ids">
<separator string="Export only" colspan="4"/>
<field name="account_ids" domain="[('type', '=', 'view'), ('parent_id', '!=', False), ('level', '<', level==0 and 999 or level+1), ('id', 'child_of', [chart_account_id])]" colspan="4" nolabel="1">
<tree>
<field name="code"/>
<field name="name"/>
<field name="type"/>
</tree>
</field>
</page>
</notebook>
<separator colspan="4"/>
<group col="4" colspan="4">
<button icon="gtk-cancel" special="cancel" string="Cancel" colspan="2"/>
<button icon="gtk-execute" name="xls_export" string="Export" type="object" context="{'xls_export':1}" colspan="2" default_focus="1"/>
</group>
</form>
</field>
</record>
<record id="action_trial_balance_period_wizard" model="ir.actions.act_window">
<field name="name">Trial Balance per Period</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">trial.balance.period.wizard</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="view_id" ref="trial_balance_period_wizard_view"/>
<field name="target">new</field>
</record>
<menuitem
name="Trial Balance per Period"
sequence="10"
parent="account.final_accounting_reports"
action="action_trial_balance_period_wizard"
id="menu_trial_balance_period_wizard"
icon="STOCK_PRINT"/>
</data>
</openerp>
|