5 <!-- CODA Configuration -->
6 <menuitem id="menu_manage_coda" name="CODA Configuration" parent="account.menu_finance_configuration" sequence="30"/>
8 <!-- CODA Bank Account Configuration -->
9 <record id="view_coda_bank_account_search" model="ir.ui.view">
10 <field name="name">coda.bank.account.search</field>
11 <field name="model">coda.bank.account</field>
12 <field name="type">search</field>
13 <field name="arch" type="xml">
14 <form string="CODA Bank Account Configuration">
15 <filter string="Normal" domain="[('state','=','normal')]" icon="terp-folder-green"/>
16 <filter string="Info" domain="[('state','=','info')]" icon="terp-folder-yellow"/>
17 <separator orientation="vertical"/>
19 <field name="bank_id"/>
20 <field name="description1"/>
21 <field name="journal"/>
22 <field name="currency" widget="selection"/>
23 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
25 <group expand="0" string="Group By...">
26 <filter string="Bank Account" icon="terp-folder-yellow" domain="[]" context="{'group_by':'bank_id'}"/>
27 <filter string="Currency" icon="terp-dolar" domain="[]" context="{'group_by':'currency'}"/>
32 <record id="view_coda_bank_account_list" model="ir.ui.view">
33 <field name="name">coda.bank.account.list</field>
34 <field name="model">coda.bank.account</field>
35 <field name="type">tree</field>
36 <field name="arch" type="xml">
37 <tree string="CODA Bank Account Configuration">
38 <field name="name" select="1"/>
39 <field name="bank_id"/>
40 <field name="currency"/>
41 <field name="description1"/>
42 <field name="journal" select="1"/>
47 <record id="view_coda_bank_account_form" model="ir.ui.view">
48 <field name="name">coda.bank.account.form</field>
49 <field name="model">coda.bank.account</field>
50 <field name="type">form</field>
51 <field name="arch" type="xml">
52 <form string="CODA Bank Account Configuration">
53 <field name="name" select="1" colspan="4"/>
54 <field name="bank_id" domain="[('partner_id.ref_companies', 'in', [company_id])]"/>
55 <field name="description1"/>
56 <field name="currency"/>
57 <field name="description2"/>
58 <field name="coda_st_naming"/>
59 <field name="state" on_change="onchange_state(state)"/>
60 <field name="journal" attrs="{'invisible':[('state','=','info')]}"/>
62 <field name="def_payable"/>
63 <field name="def_receivable"/>
64 <field name="awaiting_account"/>
65 <field name="transfer_account"/>
66 <field name="find_bbacom"/>
67 <field name="find_partner"/>
68 <field name="company_id" widget='selection' groups="base.group_multi_company"/>
69 <field name="active"/>
73 <record id="action_coda_bank_account_form" model="ir.actions.act_window">
74 <field name="name">CODA Bank Account Configuration</field>
75 <field name="res_model">coda.bank.account</field>
76 <field name="view_type">form</field>
77 <field name="view_mode">tree,form</field>
78 <field name="search_view_id" ref="view_coda_bank_account_search"/>
80 <menuitem action="action_coda_bank_account_form" id="menu_action_coda_bank_account_form" parent="menu_manage_coda" sequence="1" groups="base.group_no_one"/>
82 <!-- CODA Transaction Types -->
83 <record id="view_account_coda_trans_type_tree" model="ir.ui.view">
84 <field name="name">account.coda.trans.type.tree</field>
85 <field name="model">account.coda.trans.type</field>
86 <field name="type">tree</field>
87 <field name="arch" type="xml">
88 <tree string="CODA Transaction Types">
90 <field name="parent_id"/>
91 <field name="description"/>
95 <record id="view_account_coda_trans_type_form" model="ir.ui.view">
96 <field name="name">account.coda.trans.type.form</field>
97 <field name="model">account.coda.trans.type</field>
98 <field name="type">form</field>
99 <field name="arch" type="xml">
100 <form string="CODA Transaction Type">
102 <field name="parent_id"/>
103 <field name="description" colspan="4"/>
107 <record id="action_account_coda_trans_type_form" model="ir.actions.act_window">
108 <field name="name">CODA Transaction Types</field>
109 <field name="type">ir.actions.act_window</field>
110 <field name="res_model">account.coda.trans.type</field>
111 <field name="view_type">form</field>
112 <field name="view_mode">tree,form</field>
114 <menuitem action="action_account_coda_trans_type_form" id="menu_action_account_coda_trans_type_form" parent="menu_manage_coda" sequence="2" groups="base.group_no_one"/>
116 <!-- CODA Transaction Codes -->
117 <record id="view_account_coda_trans_code_tree" model="ir.ui.view">
118 <field name="name">account.coda.trans.code.tree</field>
119 <field name="model">account.coda.trans.code</field>
120 <field name="type">tree</field>
121 <field name="arch" type="xml">
122 <tree string="CODA Transaction Codes">
125 <field name="parent_id"/>
126 <field name="description"/>
130 <record id="view_account_coda_trans_code_form" model="ir.ui.view">
131 <field name="name">account.coda.trans.code.form</field>
132 <field name="model">account.coda.trans.code</field>
133 <field name="type">form</field>
134 <field name="arch" type="xml">
135 <form string="CODA Transaction Code">
138 <field name="parent_id"/>
139 <field name="description"/>
140 <field name="comment" colspan="4"/>
144 <record id="action_account_coda_trans_code_form" model="ir.actions.act_window">
145 <field name="name">CODA Transaction Codes</field>
146 <field name="type">ir.actions.act_window</field>
147 <field name="res_model">account.coda.trans.code</field>
148 <field name="view_type">form</field>
149 <field name="view_mode">tree,form</field>
151 <menuitem action="action_account_coda_trans_code_form" id="menu_action_account_coda_trans_code_form" parent="menu_manage_coda" sequence="3" groups="base.group_no_one"/>
153 <!-- CODA Transaction Categories -->
154 <record id="view_account_coda_trans_category_tree" model="ir.ui.view">
155 <field name="name">account.coda.trans.category.tree</field>
156 <field name="model">account.coda.trans.category</field>
157 <field name="type">tree</field>
158 <field name="arch" type="xml">
159 <tree string="CODA Transaction Categories">
160 <field name="category"/>
161 <field name="description"/>
165 <record id="view_account_coda_trans_category_form" model="ir.ui.view">
166 <field name="name">account.coda.trans.category.form</field>
167 <field name="model">account.coda.trans.category</field>
168 <field name="type">form</field>
169 <field name="arch" type="xml">
170 <form string="CODA Transaction Category">
171 <field name="category"/>
172 <field name="description"/>
176 <record id="action_account_coda_trans_category_form" model="ir.actions.act_window">
177 <field name="name">CODA Transaction Categories</field>
178 <field name="type">ir.actions.act_window</field>
179 <field name="res_model">account.coda.trans.category</field>
180 <field name="view_type">form</field>
181 <field name="view_mode">tree,form</field>
183 <menuitem action="action_account_coda_trans_category_form" id="menu_action_account_coda_trans_category_form" parent="menu_manage_coda" sequence="4" groups="base.group_no_one"/>
185 <!-- CODA Structured Communication Types -->
186 <record id="view_account_coda_comm_type_tree" model="ir.ui.view">
187 <field name="name">account.coda.comm.type.tree</field>
188 <field name="model">account.coda.comm.type</field>
189 <field name="type">tree</field>
190 <field name="arch" type="xml">
191 <tree string="CODA Structured Communication Types">
193 <field name="description"/>
197 <record id="view_account_coda_comm_type_form" model="ir.ui.view">
198 <field name="name">account.coda.comm.type.form</field>
199 <field name="model">account.coda.comm.type</field>
200 <field name="type">form</field>
201 <field name="arch" type="xml">
202 <form string="CODA Structured Communication Type">
204 <field name="description"/>
208 <record id="action_account_coda_comm_type_form" model="ir.actions.act_window">
209 <field name="name">CODA Structured Communication Types</field>
210 <field name="type">ir.actions.act_window</field>
211 <field name="res_model">account.coda.comm.type</field>
212 <field name="view_type">form</field>
213 <field name="view_mode">tree,form</field>
215 <menuitem action="action_account_coda_comm_type_form" id="menu_action_account_coda_comm_type_form" parent="menu_manage_coda" sequence="5" groups="base.group_no_one"/>
217 <!-- CODA Processing -->
218 <menuitem name="CODA Processing" parent="account.menu_finance_bank_and_cash" id="menu_account_coda" sequence="40"/>
219 <menuitem name="Import CODA Files" parent="menu_account_coda" id="menu_account_coda_import" action="action_account_coda_import" sequence="41"/>
222 <record model="ir.ui.view" id="view_account_coda_tree">
223 <field name="name">account.coda.tree</field>
224 <field name="model">account.coda</field>
225 <field name="type">tree</field>
226 <field name="arch" type="xml">
227 <tree string="CODA Files">
228 <field name="coda_creation_date"/>
231 <field name="user_id"/>
232 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
237 <record model="ir.ui.view" id="view_account_coda_form">
238 <field name="name">account.coda.form</field>
239 <field name="model">account.coda</field>
240 <field name="type">form</field>
241 <field name="arch" type="xml">
242 <form string="CODA File">
243 <group colspan="4" col="6">
244 <field name="coda_creation_date"/>
246 <field name="coda_data" filename="name"/>
248 <field name="user_id"/>
249 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
251 <separator colspan="4" string="Additional Information"/>
252 <field name="note" nolabel="1" colspan="4" />
253 <field name="statement_ids" nolabel="1" colspan="4"/>
258 <record id="view_account_coda_filter" model="ir.ui.view">
259 <field name="name">account.coda.search</field>
260 <field name="model">account.coda</field>
261 <field name="type">search</field>
262 <field name="arch" type="xml">
263 <search string="Search CODA Files">
264 <group col="10" colspan="4">
265 <field name="coda_creation_date"/>
267 <field name="user_id" widget='selection'/>
268 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
271 <group expand="0" string="Group By...">
272 <filter string="CODA Creation Date" icon="terp-go-month" domain="[]" context="{'group_by':'coda_creation_date'}"/>
273 <separator orientation="vertical"/>
274 <filter string="User" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
275 <separator orientation="vertical"/>
276 <filter string="Company" icon="terp-go-home" domain="[]" groups="base.group_multi_company" context="{'group_by':'company_id'}"/>
282 <record model="ir.actions.act_window" id="action_imported_coda_files">
283 <field name="name">Imported CODA Files</field>
284 <field name="type">ir.actions.act_window</field>
285 <field name="res_model">account.coda</field>
286 <field name="view_type">form</field>
287 <field name="view_mode">tree,form</field>
288 <field name="view_id" ref="view_account_coda_tree"/>
289 <field name="search_view_id" ref="view_account_coda_filter"/>
292 <menuitem name="Imported CODA Files" parent="menu_account_coda" id="menu_imported_coda_files" action="action_imported_coda_files" sequence="42"/>
294 <!-- CODA Bank Statements -->
295 <record id="view_coda_bank_statement_list" model="ir.ui.view">
296 <field name="name">coda.bank.statement.list</field>
297 <field name="model">coda.bank.statement</field>
298 <field name="type">tree</field>
299 <field name="arch" type="xml">
300 <tree colors="red:balance_end_real!=balance_end;blue:state=='draft' and (balance_end_real==balance_end)" string="CODA Bank Statements">
303 <field name="period_id"/>
304 <field name="coda_bank_account_id"/>
305 <field name="balance_start"/>
306 <field name="balance_end_real"/>
307 <field name="balance_end"/>
313 <record id="view_coda_bank_statement_form" model="ir.ui.view">
314 <field name="name">coda.bank.statement.form</field>
315 <field name="model">coda.bank.statement</field>
316 <field name="type">form</field>
317 <field name="arch" type="xml">
318 <form string="CODA Bank Statement">
319 <field name="name" select="1"/>
320 <field name="date" select="1"/>
321 <field name="coda_bank_account_id" select="1"/>
322 <field name="currency"/>
323 <field name="period_id" select="2"/>
326 <field name="balance_start"/>
327 <field name="balance_end_real"/>
328 <notebook colspan="4">
329 <page string="Transactions">
330 <field colspan="4" name="line_ids" nolabel="1">
331 <tree string="CODA Statement Lines">
332 <field name="sequence" string="Seq"/>
334 <field name="val_date"/>
336 <field name="name" width="250"/>
338 <field name="partner_id"/>
339 <field name="account_id"/>
340 <field name="amount"/>
341 <field name="globalisation_amount" string="Glob. Amount"/>
342 <field name="globalisation_id" string="Glob. Id"/>
344 <form string="CODA Statement Lines">
345 <field name="sequence" string="Seq"/>
347 <field name="val_date"/>
350 <field name="partner_id"/>
351 <field domain="[('type', '<>', 'view')]" name="account_id"/>
352 <field name="amount"/>
354 <field name="globalisation_amount"/>
355 <field name="globalisation_level"/>
356 <field name="globalisation_id"/>
357 <separator colspan="4" string="Notes"/>
358 <field colspan="4" name="note" nolabel="1"/>
364 <field name="balance_end"/>
370 <record id="view_coda_bank_statement_search" model="ir.ui.view">
371 <field name="name">coda.bank.statement.search</field>
372 <field name="model">coda.bank.statement</field>
373 <field name="type">search</field>
374 <field name="arch" type="xml">
375 <search string="Search CODA Bank Statements">
376 <group col="8" colspan="4">
377 <filter string="Normal" domain="[('type','=','normal')]" icon="terp-folder-green"/>
378 <filter string="Info" domain="[('type','=','info')]" icon="terp-folder-yellow"/>
379 <separator orientation="vertical"/>
382 <field name="period_id"/>
383 <field name="coda_bank_account_id"/>
384 <field name="journal_id" widget="selection" domain="[('type', '=', 'bank')]"/>
387 <group expand="0" string="Group By...">
388 <filter string="Journal" context="{'group_by': 'journal_id'}" icon="terp-folder-orange"/>
389 <filter string="Period" context="{'group_by': 'period_id'}" icon="terp-go-month"/>
395 <record model="ir.actions.act_window" id="action_coda_bank_statements">
396 <field name="name">CODA Bank Statements</field>
397 <field name="type">ir.actions.act_window</field>
398 <field name="res_model">coda.bank.statement</field>
399 <field name="view_type">form</field>
400 <field name="view_mode">tree,form</field>
401 <field name="view_id" ref="view_coda_bank_statement_list"/>
402 <field name="search_view_id" ref="view_coda_bank_statement_search"/>
403 <field name="help">The CODA Bank Statements contain the information encoded in their originating CODA file in a human readable format. The Bank Statements associated with a CODA contain the subset of the CODA Bank Statement data that is required for the creation of the Accounting Entries.</field>
406 <menuitem name="CODA Bank Statements" parent="menu_account_coda" id="menu_coda_bank_statements" action="action_coda_bank_statements" sequence="43"/>
408 <!-- CODA Bank Statement Line View -->
410 <record id="view_coda_bank_statement_line_list" model="ir.ui.view">
411 <field name="name">coda.bank.statement.line.list</field>
412 <field name="model">coda.bank.statement.line</field>
413 <field name="type">tree</field>
414 <field name="arch" type="xml">
415 <tree editable="bottom" string="CODA Statement Lines">
416 <field name="sequence" readonly="1" invisible="1"/>
417 <field name="coda_bank_account_id" readonly="1"/>
418 <field name="date" readonly="1"/>
419 <field name="val_date" readonly="1"/>
421 <field name="statement_id" readonly="1"/>
422 <field name="ref" readonly="1"/>
423 <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
424 <field name="type" on_change="onchange_type(partner_id, type)"/>
425 <field name="account_id" domain="[('journal_id','=',parent.journal_id)]"/>
426 <field name="amount" readonly="1" sum="Total Amount"/>
427 <field name="globalisation_id" string="Glob. Id"/>
428 <field name="globalisation_amount" string="Glob. Am."/>
433 <record id="view_coda_bank_statement_line_form" model="ir.ui.view">
434 <field name="name">coda.bank.statement.line.form</field>
435 <field name="model">coda.bank.statement.line</field>
436 <field name="type">form</field>
437 <field name="arch" type="xml">
438 <form string="CODA Statement Line">
439 <field name="statement_id"/>
440 <field name="coda_bank_account_id"/>
442 <field name="val_date"/>
444 <field name="ref" readonly="0"/>
445 <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
446 <field name="type" on_change="onchange_type(partner_id, type)"/>
447 <field domain="[('journal_id', '=', parent.journal_id), ('type', '<>', 'view')]" name="account_id"/>
448 <field name="amount"/>
449 <field name="globalisation_id"/>
450 <field name="sequence" readonly="0"/>
451 <separator colspan="4" string="Notes"/>
452 <field colspan="4" name="note" nolabel="1"/>
457 <record id="view_coda_bank_statement_line_filter" model="ir.ui.view">
458 <field name="name">coda.bank.statement.line.filter</field>
459 <field name="model">coda.bank.statement.line</field>
460 <field name="type">search</field>
461 <field name="arch" type="xml">
462 <search string="Search Bank Transactions">
463 <group col='6' colspan='4'>
464 <filter name="debit" string="Debit" domain="[('amount','>',0)]" icon="terp-folder-green" help="Debit Transactions."/>
465 <filter name="credit" string="Credit" domain="[('amount','<',0)]" icon="terp-folder-orange" help="Credit Transactions."/>
466 <separator orientation="vertical"/>
467 <field name="statement_id"/>
468 <field name="val_date"/>
469 <field name="amount"/>
470 <field name="globalisation_id" string="Glob. Id"/>
471 <field name="globalisation_amount" string="Glob. Amount"/>
476 <group expand="0" string="Extended Filters...">
477 <field name="coda_bank_account_id"/>
478 <field name="account_id"/>
479 <field name="partner_id"/>
484 <group string="Group By..." expand="0">
485 <filter string="Bank Account" context="{'group_by':'coda_bank_account_id'}" icon="terp-folder-green"/>
486 <filter string="Statement" context="{'group_by':'statement_id'}" icon="terp-folder-orange"/>
487 <filter string="Fin.Account" context="{'group_by':'account_id'}" icon="terp-folder-yellow"/>
493 <record id="action_coda_bank_statement_line" model="ir.actions.act_window">
494 <field name="name">CODA Statement Lines</field>
495 <field name="res_model">coda.bank.statement.line</field>
496 <field name="view_type">form</field>
497 <field name="view_mode">tree,graph,form</field>
498 <field name="context">{'block_statement_line_delete' : 1}</field>
499 <field name="search_view_id" ref="view_coda_bank_statement_line_filter"/>
500 <field name="view_id" ref="view_coda_bank_statement_line_list"/>
503 <menuitem action="action_coda_bank_statement_line" id="coda_bank_statement_line" parent="menu_account_coda" sequence="44"/>
505 <act_window name="CODA Data File"
506 domain="[('statement_ids', '=', active_id)]"
507 res_model="account.coda"
508 src_model="coda.bank.statement"
510 view_mode="tree,form"
511 id="act_coda_bank_statement_goto_account_coda"/>
513 <act_window name="Bank Statement"
514 domain="[('coda_statement_id', '=', active_id)]"
515 res_model="account.bank.statement"
516 src_model="coda.bank.statement"
518 view_mode="tree,form"
519 id="act_coda_bank_statement_goto_account_bank_statement"/>
521 <act_window name="CODA Bank Statement"
522 domain="[('statement_id', '=', active_id)]"
523 context="{'bank_statement': 1}"
524 res_model="coda.bank.statement"
525 src_model="account.bank.statement"
527 view_mode="tree,form"
528 id="act_account_bank_statement_goto_coda_bank_statement"/>