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
|
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- Account Move Line search tree view -->
<record model="ir.ui.view" id="account_move_line_mcdb_search_result">
<field name="name">account.move.line.mcdb.search.result</field>
<field name="model">account.move.line</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Account Entries" min_rows="100" hide_new_button="1">
<field name="instance_id"/>
<field name="is_corrigible" invisible="1"/>
<field name="have_an_historic" invisible="1"/>
<button name="button_do_accounting_corrections" type="object" string="Open Accounting Correction Wizard"
attrs="{'invisible': [('is_corrigible', '=', False)]}" icon="terp-mail-message-new"/>
<button name="button_open_corrections" type="object" string="Open corrections history"
attrs="{'invisible': [('have_an_historic', '=', False)]}" icon="terp-mail-"/>
<field name="journal_id"/>
<field name="move_id"/>
<field name="name"/>
<field name="ref"/>
<field name="document_date"/>
<field name="date"/>
<field name="period_id" domain="[('state','=','draft')]"/>
<field name="account_id"/>
<field name="account_type" invisible="1"/>
<field name="move_state" invisible="1"/>
<field name="partner_id" invisible="1"/>
<field name="employee_id" invisible="1"/>
<field name="transfer_journal_id" invisible="1"/>
<field name="partner_txt"/>
<field name="partner_type" invisible="1"/>
<field name="debit_currency"/>
<field name="credit_currency"/>
<field name="currency_id"/>
<field name="debit" sum="Total Functional Debit"/>
<field name="credit" sum="Total Functional Credit"/>
<field name="functional_currency_id"/>
<field name="output_amount_debit"/>
<field name="output_amount_credit"/>
<field name="output_currency"/>
<field name="reconcile_txt" />
<field name="state"/>
<field name="statement_id" invisible="1"/>
</tree>
</field>
</record>
<!-- Account Analytic Line search tree view -->
<record model="ir.ui.view" id="account_analytic_line_mcdb_search_result">
<field name="name">account.analytic.line.mcdb.search.result</field>
<field name="model">account.analytic.line</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Analytic Journal Items" min_rows="100" editable="bottom" noteditable="1" hide_delete_button="1" hide_new_button="1">
<field name="is_reallocated" invisible="1"/>
<field name="instance_id"/>
<field name="is_reversal" invisible="1"/>
<field name="journal_type" invisible="1"/>
<field name="is_corrigible" invisible="1"/>
<button name="button_corrections" type="object" string="Accounting info/correction"
attrs="{'invisible': ['|', '|', '|', ('is_reallocated', '=', True), ('is_reversal', '=', True), ('journal_type', '=', 'engagement'), ('is_corrigible', '=', False)]}" icon="terp-mail-message-new"/>
<button string="Have been reallocated?" attrs="{'invisible': [('is_reallocated', '=', False)]}" icon="terp-mail-" colspan="2" name="button_open_analytic_corrections" type="object"/>
<field name="journal_id"/>
<field name="entry_sequence"/>
<field name="name"/>
<field name="ref"/>
<field name="document_date"/>
<field name="date"/>
<field name="period_id"/>
<field name="general_account_id"/>
<field name="destination_id" string="Destination" invisible="not context.get('display_fp', False)"/>
<field name="cost_center_id" string="Cost Center" invisible="not context.get('display_fp', False)"/>
<field name="account_id"/>
<field name="partner_txt"/>
<field name="amount_currency"/>
<field name="currency_id"/>
<field name="amount"/>
<field name="functional_currency_id"/>
<field name="output_amount"/>
<field name="output_currency"/>
<field name="reversal_origin"/>
<field name="user_id" invisible="1"/>
</tree>
</field>
</record>
<!-- Account analytic line tree view -->
<record model="ir.ui.view" id="account_analytic_line_default">
<field name="name">account.analytic.line.default</field>
<field name="model">account.analytic.line</field>
<field name="type">tree</field>
<field name="inherit_id" ref="account.view_account_analytic_line_tree"/>
<field name="priority" eval="40"/>
<field name="arch" type="xml">
<data>
<xpath expr="/tree/field[@name='journal_id']" position="before">
<field name="is_reversal" invisible="1"/>
<field name="journal_type" invisible="1"/>
<field name="is_corrigible" invisible="1"/>
<button name="button_corrections" type="object" string="Accounting info/correction"
attrs="{'invisible': ['|', '|', '|', ('is_reallocated', '=', True), ('is_reversal', '=', True), ('journal_type', '=', 'engagement'), ('is_corrigible', '=', False)]}" icon="terp-mail-message-new"/>
<field name="is_reallocated" invisible="1"/>
<field name="last_corrected_id" invisible="1"/>
<button string="Have been reallocated" attrs="{'invisible': [('is_reallocated', '=', False), ('last_corrected_id', '=', False)]}" icon="terp-mail-" colspan="2" name="button_open_analytic_corrections" type="object"/>
</xpath>
</data>
</field>
</record>
<!-- Account move line search view -->
<record id="mcdb_view_account_move_line_filter" model="ir.ui.view">
<field name="name">Journal Items</field>
<field name="model">account.move.line</field>
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Search Journal Items">
<group col='10' colspan='4'>
<filter icon="terp-document-new" string="Unbalanced" domain="[('state','=','draft')]" help="Unbalanced Journal Items"/>
<separator orientation="vertical"/>
<filter icon="terp-document-new" string="Unposted" domain="[('move_id.state','=','draft')]" help="Unposted Journal Items"/>
<filter name="posted" icon="terp-camera_test" string="Posted" domain="[('move_id.state','=','posted')]" help="Posted Journal Items"/>
<separator orientation="vertical"/>
<filter
icon="terp-dolar_ok!"
string="Unreconciled"
domain="[('reconcile_id','=',False), ('account_id.reconcile','=',True)]" help="Unreconciled Journal Items"
name="unreconciled"/>
<separator orientation="vertical"/>
<newline/>
<field name="document_date"/>
<field name="date" select='1'/>
<newline/>
<field name="move_id" select="1"/>
<field name="ref" select="1" string="Reference"/>
<field name="account_id" select='1'/>
<field name="name" select="1"/>
<newline/>
<field name="partner_id" select='1' string="3RD Party Partner"/>
<field name="employee_id" select='1' string="3RD Party Employee"/>
<field name="transfer_journal_id" select='1' string="3RD Party Journal"/>
</group>
<newline/>
<group col="10" colspan="4">
<field name="instance_id" on_change="onchange_filter_journal(instance_id, journal_id_fake)"/>
<field name="journal_id_fake" context="{'journal_id':self, 'visible_id':self, 'normal_view':False}"/>
<field name="journal_type"/>
<field name="period_id" context="{'period_id':self, 'search_default_period_id':self}"/>
</group>
<newline/>
<group expand="0" string="Extended Filters...">
<field name="narration" select="1"/>
<field name="balance" string="Debit/Credit" select='1'/>
</group>
<newline/>
<group expand="0" string="Group By..." colspan="12" col="10">
<filter string="3rd party Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
<filter string="3rd party Employee" icon="terp-personal-" domain="[]" context="{'group_by': 'employee_id'}"/>
<filter string="3rd party Journal" icon="terp-dolar" domain="[]" context="{'group_by': 'transfer_journal_id'}"/>
<separator orientation="vertical"/>
<filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
<filter string="Account" icon="terp-folder-green" context="{'group_by':'account_id'}"/>
<filter string="Account Type" icon="terp-folder-green" context="{'group_by':'account_type'}"/>
<separator orientation="vertical"/>
<filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id'}"/>
<separator orientation="vertical"/>
<filter string="Register Name" icon="terp-dolar_ok!" domain="[]" context="{'group_by': 'statement_id'}"/>
<separator orientation="vertical"/>
<filter string="Proprietary Instance" icon="terp-stage" domain="[]" context="{'group_by': 'instance_id'}"/>
</group>
<newline/>
</search>
</field>
</record>
<!-- Account analytic line search view -->
<record id="mcdb_view_account_analytic_line_filter" model="ir.ui.view">
<field name="name">mcdb.account.analytic.line.select</field>
<field name="model">account.analytic.line</field>
<field name="type">search</field>
<field name="inherit_id" ref="account.view_account_analytic_line_filter"/>
<field name="arch" type="xml">
<xpath expr="/search/group[1]/field[@name='date']" position='after'>
<field name="document_date" select="1"/>
<newline/>
</xpath>
<xpath expr="/search/group[1]/field[@name='user_id']" position="replace">
</xpath>
<xpath expr="/search/group[2]/field[@name='product_id']" position="replace">
<field name="amount_currency"/>
</xpath>
<xpath expr="/search/group[3]/filter[@string='User']" position="replace">
</xpath>
<xpath expr="/search/group[3]/filter[@string='Product']" position="replace">
</xpath>
<xpath expr="/search/group[3]/filter[@string='Account']" position="replace">
<filter string="CC" context="{'group_by':'cost_center_id'}" icon="terp-folder-green"/>
</xpath>
<xpath expr="/search/group[3]/filter[@string='Fin.Account']" position='replace'>
<filter string='G/L account' context="{'group_by':'general_account_id'}" icon="terp-folder-green"/>
<separator orientation="vertical"/>
<filter string="Proprietary Instance" icon="terp-stage" domain="[]" context="{'group_by': 'instance_id'}"/>
</xpath>
</field>
</record>
<!-- Account Analytic Account Action -->
<record id="action_analytic_account_mass_reallocation_search" model="ir.actions.server">
<field name="name">Search for Mass Reallocation</field>
<field name="model_id" ref="model_mass_reallocation_search"/>
<field name="state">code</field>
<field name="code">action = obj.get_filled_mcdb(context=context)</field>
</record>
<record id="ir_open_mcdb_search" model="ir.values">
<field name="key2">client_action_multi</field>
<field name="model">account.analytic.account</field>
<field name="name">Search for Mass Reallocation</field>
<field eval="'ir.actions.server,%d'%action_analytic_account_mass_reallocation_search" name="value"/>
<field eval="True" name="object"/>
</record>
</data>
</openerp>
|