1
<?xml version="1.0" encoding="utf-8"?>
5
<!-- Account Move Line search tree view -->
6
<record model="ir.ui.view" id="account_move_line_mcdb_search_result">
7
<field name="name">account.move.line.mcdb.search.result</field>
8
<field name="model">account.move.line</field>
9
<field name="type">tree</field>
10
<field name="arch" type="xml">
11
<tree string="Account Entries" min_rows="100" hide_new_button="1" hide_delete_button="1">
12
<field name="instance_id"/>
13
<field name="is_corrigible" invisible="1"/>
14
<field name="have_an_historic" invisible="1"/>
15
<button name="button_do_accounting_corrections" type="object" string="Open Accounting Correction Wizard"
16
attrs="{'invisible': [('is_corrigible', '=', False)]}" icon="terp-mail-message-new"/>
17
<button name="button_open_corrections" type="object" string="Open corrections history"
18
attrs="{'invisible': [('have_an_historic', '=', False)]}" icon="terp-mail-"/>
19
<field name="journal_id"/>
20
<field name="move_id"/>
23
<field name="document_date"/>
25
<field name="period_id" domain="[('state','=','draft')]"/>
26
<field name="account_id"/>
27
<field name="account_type" invisible="1"/>
28
<field name="move_state" invisible="1"/>
29
<field name="partner_id" invisible="1"/>
30
<field name="employee_id" invisible="1"/>
31
<field name="transfer_journal_id" invisible="1"/>
32
<field name="partner_txt"/>
33
<field name="partner_type" invisible="1"/>
34
<field name="debit_currency"/>
35
<field name="credit_currency"/>
36
<field name="currency_id"/>
37
<field name="debit" sum="Total Functional Debit"/>
38
<field name="credit" sum="Total Functional Credit"/>
39
<field name="functional_currency_id"/>
40
<field name="output_amount_debit"/>
41
<field name="output_amount_credit"/>
42
<field name="output_currency"/>
43
<field name="reconcile_txt" />
45
<field name="statement_id" invisible="1"/>
50
<!-- Account Analytic Line search tree view -->
51
<record model="ir.ui.view" id="account_analytic_line_mcdb_search_result">
52
<field name="name">account.analytic.line.mcdb.search.result</field>
53
<field name="model">account.analytic.line</field>
54
<field name="type">tree</field>
55
<field name="arch" type="xml">
56
<tree string="Analytic Journal Items" min_rows="100" editable="bottom" noteditable="1" hide_delete_button="1" hide_new_button="1">
57
<field name="is_reallocated" invisible="1"/>
58
<field name="instance_id"/>
59
<field name="is_reversal" invisible="1"/>
60
<field name="journal_type" invisible="1"/>
61
<field name="is_corrigible" invisible="1"/>
62
<button name="button_corrections" type="object" string="Accounting info/correction"
63
attrs="{'invisible': ['|', '|', '|', ('is_reallocated', '=', True), ('is_reversal', '=', True), ('journal_type', '=', 'engagement'), ('is_corrigible', '=', False)]}" icon="terp-mail-message-new"/>
64
<button string="Have been reallocated?" attrs="{'invisible': [('is_reallocated', '=', False)]}" icon="terp-mail-" colspan="2" name="button_open_analytic_corrections" type="object"/>
65
<field name="journal_id"/>
66
<field name="entry_sequence"/>
69
<field name="document_date"/>
71
<field name="period_id"/>
72
<field name="general_account_id"/>
73
<field name="destination_id" string="Destination" invisible="not context.get('display_fp', False)"/>
74
<field name="cost_center_id" string="Cost Center" invisible="not context.get('display_fp', False)"/>
75
<field name="account_id"/>
76
<field name="partner_txt"/>
77
<field name="amount_currency"/>
78
<field name="currency_id"/>
79
<field name="amount"/>
80
<field name="functional_currency_id"/>
81
<field name="output_amount"/>
82
<field name="output_currency"/>
83
<field name="reversal_origin"/>
84
<field name="user_id" invisible="1"/>
89
<!-- Account analytic line tree view -->
90
<record model="ir.ui.view" id="account_analytic_line_default">
91
<field name="name">account.analytic.line.default</field>
92
<field name="model">account.analytic.line</field>
93
<field name="type">tree</field>
94
<field name="inherit_id" ref="account.view_account_analytic_line_tree"/>
95
<field name="priority" eval="40"/>
96
<field name="arch" type="xml">
98
<xpath expr="/tree/field[@name='journal_id']" position="before">
99
<field name="is_reversal" invisible="1"/>
100
<field name="journal_type" invisible="1"/>
101
<field name="is_corrigible" invisible="1"/>
102
<button name="button_corrections" type="object" string="Accounting info/correction"
103
attrs="{'invisible': ['|', '|', '|', ('is_reallocated', '=', True), ('is_reversal', '=', True), ('journal_type', '=', 'engagement'), ('is_corrigible', '=', False)]}" icon="terp-mail-message-new"/>
104
<field name="is_reallocated" invisible="1"/>
105
<field name="last_corrected_id" invisible="1"/>
106
<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"/>
112
<!-- Account move line search view -->
113
<record id="mcdb_view_account_move_line_filter" model="ir.ui.view">
114
<field name="name">Journal Items</field>
115
<field name="model">account.move.line</field>
116
<field name="type">search</field>
117
<field name="arch" type="xml">
118
<search string="Search Journal Items">
119
<group col='10' colspan='4'>
120
<filter icon="terp-document-new" string="Unbalanced" domain="[('state','=','draft')]" help="Unbalanced Journal Items"/>
121
<separator orientation="vertical"/>
122
<filter icon="terp-document-new" string="Unposted" domain="[('move_id.state','=','draft')]" help="Unposted Journal Items"/>
123
<filter name="posted" icon="terp-camera_test" string="Posted" domain="[('move_id.state','=','posted')]" help="Posted Journal Items"/>
124
<separator orientation="vertical"/>
126
icon="terp-dolar_ok!"
127
string="Unreconciled"
128
domain="[('reconcile_id','=',False), ('account_id.reconcile','=',True)]" help="Unreconciled Journal Items"
129
name="unreconciled"/>
130
<separator orientation="vertical"/>
132
<field name="document_date"/>
133
<field name="date" select='1'/>
135
<field name="move_id" select="1"/>
136
<field name="ref" select="1" string="Reference"/>
137
<field name="account_id" select='1'/>
138
<field name="name" select="1"/>
140
<field name="partner_id" select='1' string="3RD Party Partner"/>
141
<field name="employee_id" select='1' string="3RD Party Employee"/>
142
<field name="transfer_journal_id" select='1' string="3RD Party Journal"/>
143
<field name="is_reconciled" select='1'/>
144
<field name="reconcile_total_partial_id" select='1'/>
147
<group col="10" colspan="4">
148
<field name="instance_id" on_change="onchange_filter_journal(instance_id, journal_id_fake)"/>
149
<field name="journal_id_fake" context="{'journal_id':self, 'visible_id':self, 'normal_view':False}"/>
150
<field name="journal_type"/>
151
<field name="period_id" context="{'period_id':self, 'search_default_period_id':self}"/>
154
<group col="10" colspan="4">
155
<field name="balance" string="Debit/Credit Fonctional" select='1'/>
156
<field name="balance_currency" string="Debit/Credit Booking" select='1'/>
159
<group expand="0" string="Extended Filters...">
160
<field name="narration" select="1"/>
163
<group expand="0" string="Group By..." colspan="12" col="10">
164
<filter string="3rd party Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
165
<filter string="3rd party Employee" icon="terp-personal-" domain="[]" context="{'group_by': 'employee_id'}"/>
166
<filter string="3rd party Journal" icon="terp-dolar" domain="[]" context="{'group_by': 'transfer_journal_id'}"/>
167
<separator orientation="vertical"/>
168
<filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
169
<filter string="Account" icon="terp-folder-green" context="{'group_by':'account_id'}"/>
170
<filter string="Account Type" icon="terp-folder-green" context="{'group_by':'account_type'}"/>
171
<separator orientation="vertical"/>
172
<filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id'}"/>
173
<separator orientation="vertical"/>
174
<filter string="Register Name" icon="terp-dolar_ok!" domain="[]" context="{'group_by': 'statement_id'}"/>
175
<separator orientation="vertical"/>
176
<filter string="Proprietary Instance" icon="terp-stage" domain="[]" context="{'group_by': 'instance_id'}"/>
183
<!-- Account analytic line search view -->
184
<record id="mcdb_view_account_analytic_line_filter" model="ir.ui.view">
185
<field name="name">mcdb.account.analytic.line.select</field>
186
<field name="model">account.analytic.line</field>
187
<field name="type">search</field>
188
<field name="inherit_id" ref="account.view_account_analytic_line_filter"/>
189
<field name="arch" type="xml">
190
<xpath expr="/search/group[1]/field[@name='date']" position='after'>
191
<field name="document_date" select="1"/>
194
<xpath expr="/search/group[1]/field[@name='user_id']" position="replace">
196
<xpath expr="/search/group[2]/field[@name='product_id']" position="replace">
197
<field name="amount_currency"/>
199
<xpath expr="/search/group[3]/filter[@string='User']" position="replace">
201
<xpath expr="/search/group[3]/filter[@string='Product']" position="replace">
203
<xpath expr="/search/group[3]/filter[@string='Account']" position="replace">
204
<filter string="CC" context="{'group_by':'cost_center_id'}" icon="terp-folder-green"/>
206
<xpath expr="/search/group[3]/filter[@string='Fin.Account']" position='replace'>
207
<filter string='G/L account' context="{'group_by':'general_account_id'}" icon="terp-folder-green"/>
208
<separator orientation="vertical"/>
209
<filter string="Proprietary Instance" icon="terp-stage" domain="[]" context="{'group_by': 'instance_id'}"/>
214
<!-- Account Analytic Account Action -->
215
<record id="action_analytic_account_mass_reallocation_search" model="ir.actions.server">
216
<field name="name">Search for Mass Reallocation</field>
217
<field name="model_id" ref="model_mass_reallocation_search"/>
218
<field name="state">code</field>
219
<field name="code">action = obj.get_filled_mcdb(context=context)</field>
222
<record id="ir_open_mcdb_search" model="ir.values">
223
<field name="key2">client_action_multi</field>
224
<field name="model">account.analytic.account</field>
225
<field name="name">Search for Mass Reallocation</field>
226
<field eval="'ir.actions.server,%d'%action_analytic_account_mass_reallocation_search" name="value"/>
227
<field eval="True" name="object"/>