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
|
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TESTS [
<!ENTITY general SYSTEM "mcdb_view_general.xml">
<!ENTITY account SYSTEM "mcdb_view_account.xml">
<!ENTITY currency SYSTEM "mcdb_view_currency.xml">
<!ENTITY end SYSTEM "mcdb_view_end.xml">
]>
<openerp>
<data>
<!-- Account Multi-Criteria Data Browser Form -->
<record model="ir.ui.view" id="account_mcdb_form">
<field name="name">account.mcdb.form</field>
<field name="model">account.mcdb</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Selector - G/L" hide_new_button="1" hide_duplicate_button="1" hide_delete_button="1">
&general;
<field name="abs_id" colspan="2"/>
<label string="" colspan="2"/>
<group col="2" colspan="2">
<group col="2" colspan="2">
<button name="button_journal_clear" type="object" string="Remove all Journals" icon="gtk-clear" colspan="1"/>
<button name="button_journal_add" type="object" string="Add all Journals" icon="gtk-add" colspan="1"/>
</group>
<field name="rev_journal_ids" colspan="2"/>
<field name="journal_ids" colspan="2" nolabel="1">
<tree string="Journals" editable="top" noteditable="1">
<field name="code"/>
<field name="name" string="Name"/>
<field name="type"/>
</tree>
</field>
</group>
<group col="2" colspan="2">
<group col="2" colspan="2">
<button name="button_period_clear" type="object" string="Remove all Periods" icon="gtk-clear" colspan="1"/>
<button name="button_period_add" type="object" string="Add all Periods" icon="gtk-add" colspan="1"/>
</group>
<field name="rev_period_ids" colspan="2"/>
<field name="period_ids" colspan="2" nolabel="1">
<tree string="Periods" editable="top" noteditable="1">
<field name="name" string="Name"/>
<field name="date_start" string="Start"/>
<field name="date_stop" string="Stop"/>
<field name="state"/>
</tree>
</field>
</group>
&account;
<separator string="Reconciliation" colspan="4"/>
<field name="reconciled"/>
<field name="reconcile_id"/>
¤cy;
<group colspan="4" col="6">
<separator string="Third Party" colspan="6"/>
<field name="partner_id" colspan="2"/>
<field name="employee_id" colspan="2"/>
<field name="transfer_journal_id" colspan="2"/>
</group>
&end;
</form>
</field>
</record>
<!-- Analytic Multi-Criteria Data Browser Form -->
<record model="ir.ui.view" id="account_mcdb_analytic_form">
<field name="name">account.mcdb.analytic.form</field>
<field name="model">account.mcdb</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Selector - Analytic" hide_new_button="1" hide_duplicate_button="1" hide_delete_button="1">
&general;
<group colspan="2" col="2">
<group colspan="2" col="2">
<button name="button_account_clear" type="object" string="Remove all Accounts" icon="gtk-clear" colspan="1"/>
<button name="button_account_add" type="object" string="Add all Accounts" icon="gtk-add" colspan="1"/>
</group>
<field name="rev_account_ids"/>
<field name="account_ids" colspan="2" nolabel="1" domain="[('parent_id', '!=', False)]">
<tree string="Accounts" colors="blue:type in ('view');black:type not in ('view')" editable="top" noteditable="1">
<field name="code"/>
<field name="name"/>
<field name="type" string="Type"/>
</tree>
</field>
</group>
<group colspan="2" col="2">
<group col="2" colspan="2">
<button name="button_analytic_journal_clear" type="object" string="Remove all Analytic Journals" icon="gtk-clear" colspan="1"/>
<button name="button_analytic_journal_add" type="object" string="Add all Analytic Journals" icon="gtk-add" colspan="1"/>
</group>
<field name="rev_analytic_journal_ids" colspan="2"/>
<field name="analytic_journal_ids" colspan="2" nolabel="1">
<tree string="Analytic Journals" editable="top" noteditable="1">
<field name="code"/>
<field name="name" string="Name"/>
<field name="type"/>
</tree>
</field>
</group>
<group colspan="2" col="2">
<html>
<br />
</html>
</group>
<separator string="Analytic Accounts" colspan="4"/>
<group colspan="2" col="2">
<group col="2" colspan="2">
<button name="button_cost_center_clear" type="object" string="Remove all Cost Centers" icon="gtk-clear" colspan="1"/>
<button name="button_cost_center_add" type="object" string="Add all Cost Centers" icon="gtk-add" colspan="1"/>
</group>
<field name="rev_analytic_account_cc_ids"/>
<field name="analytic_account_cc_ids" colspan="2" nolabel="1" domain="[('type', '!=', 'view'), ('category', '=', 'OC')]">
<tree string="Cost Center" editable="top" noteditable="1">
<field name="code" string="Ana. Code"/>
<field name="name" string="Ana. Name"/>
<field name="type" string="Ana. Type"/>
</tree>
</field>
</group>
<group colspan="2" col="2">
<group col="2" colspan="2">
<button name="button_destination_clear" type="object" string="Remove all Destinations" icon="gtk-clear" colspan="1"/>
<button name="button_destination_add" type="object" string="Add all Destinations" icon="gtk-add" colspan="1"/>
</group>
<field name="rev_analytic_account_dest_ids"/>
<field name="analytic_account_dest_ids" colspan="2" nolabel="1" domain="[('type', '!=', 'view'), ('category', '=', 'DEST')]">
<tree string="Destination" editable="top" noteditable="1">
<field name="code" string="Ana. Code"/>
<field name="name" string="Ana. Name"/>
<field name="type" string="Ana. Type"/>
</tree>
</field>
</group>
<group colspan="2" col="2">
<group col="2" colspan="2">
<button name="button_funding_pool_clear" type="object" string="Remove all Funding Pools" icon="gtk-clear" colspan="1"/>
<button name="button_funding_pool_add" type="object" string="Add all Funding Pools" icon="gtk-add" colspan="1"/>
</group>
<field name="rev_analytic_account_fp_ids"/>
<field name="analytic_account_fp_ids" colspan="2" nolabel="1" domain="[('type', '!=', 'view'), ('category', '=', 'FUNDING')]">
<tree string="Funding Pool" editable="top" noteditable="1">
<field name="code" string="Ana. Code"/>
<field name="name" string="Ana. Name"/>
<field name="type" string="Ana. Type"/>
</tree>
</field>
</group>
<!--group colspan="2" col="2">
<group col="2" colspan="2">
<button name="button_free_1_clear" type="object" string="Remove all Free 1" icon="gtk-clear" colspan="1"/>
<button name="button_free_1_add" type="object" string="Add all Free 1" icon="gtk-add" colspan="1"/>
</group>
<field name="rev_analytic_account_f1_ids"/>
<field name="analytic_account_f1_ids" colspan="2" nolabel="1" domain="[('type', '!=', 'view'), ('category', '=', 'FREE1')]">
<tree string="Free 1" editable="top" noteditable="1">
<field name="code" string="Ana. Code"/>
<field name="name" string="Ana. Name"/>
<field name="type" string="Ana. Type"/>
</tree>
</field>
</group>
<group colspan="2" col="2">
<group col="2" colspan="2">
<button name="button_free_2_clear" type="object" string="Remove all Free 2" icon="gtk-clear" colspan="1"/>
<button name="button_free_2_add" type="object" string="Add all Free 2" icon="gtk-add" colspan="1"/>
</group>
<field name="rev_analytic_account_f2_ids"/>
<field name="analytic_account_f2_ids" colspan="2" nolabel="1" domain="[('type', '!=', 'view'), ('category', '=', 'FREE2')]">
<tree string="Free 2" editable="top" noteditable="1">
<field name="code" string="Ana. Code"/>
<field name="name" string="Ana. Name"/>
<field name="type" string="Ana. Type"/>
</tree>
</field>
</group-->
<separator string="Reallocation" colspan="4"/>
<field name="reallocated" colspan="2"/>
<field name="reversed" colspan="2"/>
¤cy;
&end;
</form>
</field>
</record>
<!-- Actions -->
<record id="action_account_mcdb_form" model="ir.actions.act_window">
<field name="name">Selector - G/L</field>
<field name="res_model">account.mcdb</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="view_id" ref="account_mcdb_form"/>
</record>
<record id="action_account_mcdb_analytic_form" model="ir.actions.act_window">
<field name="name">Selector - Analytic</field>
<field name="res_model">account.mcdb</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="view_id" ref="account_mcdb_analytic_form"/>
<field name="context">{'from': 'account.analytic.line'}</field>
</record>
<!-- Menu -->
<menuitem id="menu_finance_mcdb" name="Selector" parent="account.menu_finance" sequence="9"/>
<menuitem string="Selector - G/L" action="action_account_mcdb_form" id="menu_finance_mcdb_move_line" parent="menu_finance_mcdb" sequence="1"/>
<menuitem string="Selector - Analytic" action="action_account_mcdb_analytic_form" id="menu_finance_mcdb_analytic_move_line" parent="menu_finance_mcdb" sequence="2"/>
</data>
</openerp>
|