1
<?xml version="1.0" encoding="utf-8"?>
4
========================================================================
5
Add fields balance_account_id reconcile to pyment mode view
6
========================================================================
7
<record id="view_payment_mode_form_acc" model="ir.ui.view">
8
<field name="name">payment.mode.form.inherit</field>
9
<field name="model">payment.mode</field>
10
<field name="inherit_id" ref="account_payment.view_payment_mode_form"/>
11
<field name="arch" type="xml">
12
<field name="bank_id" position="after">
13
<field name="writeoff_journal_id" />
14
<field name="writeoff_acc_id" domain="[('type','!=','view') ]"/>
15
<field name="gain_loss_journal_id" />
17
<field name="gain_acc_id" domain="[('type','!=','view') ]"/>
18
<field name="loss_acc_id" domain="[('type','!=','view') ]"/>
19
<field name="available_account_id" domain="[('type','=','view') ]"/>
21
<field name="statement_account_id" domain="[('type','=','other') ]"/>
22
<field name="transit_account_id" domain="[('type','=','other') ]"/>
23
<field name="payment_export_id"/>
24
<field name="report_cheque_id"/>
30
========================================================================
31
Inherit to Payment Oprder to change wizard populate payment
32
========================================================================
33
<record id="view_payment_order_form_button_wizard" model="ir.ui.view">
34
<field name="name">payment.order.form.button</field>
35
<field name="model">payment.order</field>
36
<field name="inherit_id" ref="account_payment.view_payment_order_form"/>
37
<field name="arch" type="xml">
38
<button name="%(account_payment.wizard_populate_payment)d" position="replace">
39
<button colspan="2" name="%(wizard_populate_pay)d" string="Select Invoices to Pay" type="action" attrs="{'invisible':[('state','=','done')]}"/>
43
========================================================================
44
Inherit to Payment Oprder field reference
45
========================================================================
46
<record id="view_payment_order_form_wizard" model="ir.ui.view">
47
<field name="name">payment.order.form.inherit</field>
48
<field name="model">payment.order</field>
49
<field name="inherit_id" ref="account_payment.view_payment_order_form"/>
50
<field name="arch" type="xml">
51
<field name="reference" position="replace">
52
<field name="reference" select="1"/>
56
========================================================================
57
Inherit to Payment Order Line to add operation and code_id
58
========================================================================
59
<record id="view_payment_order_form_mode" model="ir.ui.view">
60
<field name="name">payment.order.form.mode.inherit</field>
61
<field name="model">payment.order</field>
62
<field name="inherit_id" ref="account_payment.view_payment_order_form"/>
63
<field name="arch" type="xml">
64
<field name="mode" position="replace">
65
<field name="mode" domain="[('report_cheque_id','=', False)]"/>
70
<record id="view_payment_order_form_balance" model="ir.ui.view">
71
<field name="name">payment.order.form.line.inherit</field>
72
<field name="model">payment.order</field>
73
<field name="inherit_id" ref="account_payment.view_payment_order_form"/>
74
<field name="arch" type="xml">
75
<field name="line_ids" position="replace">
76
<field name="line_ids" colspan="4" widget="one2many_list" nolabel="1">
77
<form string="Payment Line">
79
<page string="Payment">
80
<separator colspan="4" string="Transaction Information"/>
81
<field name="move_line_id"
82
on_change="onchange_move_line(move_line_id,parent.mode,parent.date_prefered,parent.date_planned,currency,company_currency)" select="1" domain="[('reconcile_id','=', False), ('credit', '>',0),('amount_to_pay','>',0)] "/>
83
<field name="rate" readonly="1"/>
84
<field name="currency" nolabel="0"/>
85
<field name="amount_currency" select="2"
86
on_change="onchange_amount(amount_currency,currency,company_currency, pay_rate)"/>
87
<separator colspan="4" string="Payment Information"/>
88
<field name="company_currency" nolabel="0"/>
89
<field name="amount"/>
90
<field name="calc_currency" nolabel="0"/>
91
<field name="calc_amount"/>
93
on_change="onchange_rate(amount_currency, company_currency, currency, date, False)"/>
94
<field name="pay_rate"
95
on_change="onchange_rate(amount_currency, company_currency, currency, date, pay_rate)"/>
96
<field name="cost_center_id"/>
97
<field name="account_id"/>
98
<field name="partner_id" select="1"/>
99
<field domain="[('partner_id','=',partner_id)]" name="bank_id"/>
100
<separator colspan="2" string="Owner Account"/>
101
<separator colspan="2" string="Desitination Account"/>
102
<field colspan="2" name="info_owner" nolabel="1"/>
103
<field colspan="2" name="info_partner" nolabel="1"/>
104
<field colspan="4" name="communication"/>
105
<field colspan="4" name="communication2"/>
107
<field name="state"/>
109
<page string="Information">
111
<separator colspan="4" string="General Information"/>
112
<separator colspan="4" string="Entry Information"/>
113
<field name="create_date" readonly="1"/>
114
<field name="ml_maturity_date"/>
115
<field name="ml_inv_ref"/>
119
<tree string="Payment Line" editable="top">
120
<field name="cost_center_id"/>
121
<field name="ml_inv_ref" />
122
<field name="partner_id" on_change="onchange_partner(partner_id,parent.mode)"/>
123
<field name="bank_id" on_change="onchange_bank_id(partner_id,bank_id,parent.mode,move_line_id)" domain="[('partner_id', '=', partner_id)]" invisible="1"/>
124
<field name="ml_maturity_date"/>
126
<field name="partial"/>
127
<field name="calc_amount" />
128
<field name="amount_currency" select="2" string="Amount"
129
on_change="onchange_amount(amount_currency,currency,company_currency, pay_rate)"/>
130
<field name="currency"/>
132
<field name="amount" sum="Total in Company Currency" invisible="1"/>
133
<field name="company_currency" invisible="1"/>
134
<field name="pay_rate" invisible="1"/>
135
<field name="communication"/>
136
<field name="move_line_id" invisible="0"/>
144
<!-- **********************************************************************
146
**********************************************************************-->
147
<record id="view_cheque_form" model="ir.ui.view">
148
<field name="name">payment.cheque.form</field>
149
<field name="model">payment.cheque</field>
150
<field name="type">form</field>
151
<field name="arch" type="xml">
152
<form string="Payment cheque">
153
<field name="number" select="1"/>
154
<field name="amount"/>
155
<field name="partner_id" select="1"/>
156
<field name="date" select="1"/>
157
<field name="mode" select="1" on_change="onchange_mode(mode)"/>
158
<field name="user_id"/>
159
<field name="period_id"/>
160
<field name="move_id" />
161
<button colspan="2" name="%(wizard_import_invoice)d" string="Select Invoices to Pay" type="action" states="draft"/>
162
<field name="currency_id" />
163
<notebook colspan="4">
164
<page string="Payment">
165
<field name="concept"/>
166
<field name="line_id" colspan="4" widget="one2many_list" nolabel="1" on_change="onchange_line_id(line_id)" context="partner_id=partner_id, date=date, concept=concept" default_get="{'partner_id': partner_id, 'date': date, 'concept': concept}">
167
<form string="Payment Line">
169
<page string="Payment">
170
<separator colspan="4" string="Transaction Information"/>
171
<field name="move_line_id"
172
on_change="onchange_move_line(move_line_id,parent.mode,parent.date_prefered,parent.date_planned,currency,company_currency)" select="1" domain="[('reconcile_id','=', False), ('credit', '>',0),('amount_to_pay','>',0)] "/>
173
<field name="rate" readonly="1"/>
174
<field name="currency" nolabel="0"/>
175
<field name="amount_currency" select="2"
176
on_change="onchange_amount(amount_currency,currency,company_currency, pay_rate)"/>
177
<separator colspan="4" string="Payment Information"/>
178
<field name="company_currency" nolabel="0"/>
179
<field name="amount"/>
180
<field name="calc_currency" nolabel="0"/>
181
<field name="calc_amount"/>
183
on_change="onchange_rate(amount_currency, company_currency, currency, date, False)"/>
184
<field name="pay_rate"
185
on_change="onchange_rate(amount_currency, company_currency, currency, date, pay_rate)"/>
186
<field name="cost_center_id" required="1"/>
187
<field name="account_id"/>
188
<field name="partner_id" select="1" invisible="1"/>
190
<field name="state"/>
192
<page string="Information">
193
<separator colspan="4" string="General Information"/>
194
<separator colspan="4" string="Entry Information"/>
195
<field name="create_date" readonly="1"/>
196
<field name="ml_maturity_date"/>
197
<field name="ml_inv_ref"/>
198
<field name="communication"/>
202
<tree string="Payment Line" editable="top">
203
<field name="cost_center_id" required="1"/>
204
<field name="account_id" on_change="onchange_account_id(parent.concept)"/>
205
<field name="partner_id" invisible="1"/>
206
<field name="date" invisible="1"/>
207
<field name="partial"/>
208
<field name="calc_amount"/>
209
<field name="amount_currency" select="2" string="Amount" invisible="1"/>
210
<field name="currency" invisible="1"/>
212
<field name="amount" sum="Total in Company Currency" invisible="1"/>
213
<field name="company_currency" invisible="1"/>
214
<field name="pay_rate" invisible="1"/>
215
<field name="ml_inv_ref" />
216
<field name="move_line_id"/>
217
<field name="communication" invisible="1"/>
221
<page string="Partial Payed Lines">
222
<field name="partial_line_id" nolabel="1"/>
225
<group col="8" colspan="4">
226
<field name="state" readonly="1" select="1"/>
227
<button name="action_cancel" states="draft,done,printed,confirm" string="Cancel" type="object"/>
228
<button name="action_confirm" states="draft" string="Confirm" type="object"/>
229
<button name="action_open" states="confirm" string="Create Cheques" type="object"/>
230
<button name="action_draft" states="cancel" string="Set to Draft" type="object"/>
235
<record id="view_cheque_tree" model="ir.ui.view">
236
<field name="name">payment.cheque.tree</field>
237
<field name="model">payment.cheque</field>
238
<field name="type">tree</field>
239
<field name="arch" type="xml">
240
<tree string="Payment cheque">
241
<field name="number"/>
242
<field name="amount"/>
243
<field name="partner_id"/>
245
<field name="move_id" />
246
<field name="state"/>
247
<field name="currency_id"/>
252
<record id="action_cheque_form" model="ir.actions.act_window">
253
<field name="name">Cheque</field>
254
<field name="type">ir.actions.act_window</field>
255
<field name="res_model">payment.cheque</field>
256
<field name="view_type">form</field>
257
<field name="view_mode">tree,form</field>
258
<field name="view_id" ref="view_cheque_tree"/>
260
<menuitem action="action_cheque_form" id="menu_action_cheque_form" parent="account_payment.menu_main" sequence="4"/>
262
<record id="action_cheque_form_unreconcile" model="ir.actions.act_window">
263
<field name="name">Cheques To Print</field>
264
<field name="res_model">payment.cheque</field>
265
<field name="view_type">form</field>
266
<field name="view_mode">tree,form</field>
267
<field name="domain">[('state','=','done')]</field>
269
<menuitem action="action_cheque_form_unreconcile" id="menu_action_cheque_form_unreconcile" parent="menu_action_cheque_form"/>
271
<record id="action_cheque_new" model="ir.actions.act_window">
272
<field name="name">New Cheque</field>
273
<field name="type">ir.actions.act_window</field>
274
<field name="res_model">payment.cheque</field>
275
<field name="view_mode">form,tree</field>
277
<menuitem action="action_cheque_new" id="menu_action_cheque_new" parent="account_payment.menu_main" sequence="7"/>
280
=========================================================
282
=========================================================
283
<record model="ir.ui.view" id="view_report_cheque_form">
284
<field name="name">report.cheque.form</field>
285
<field name="model">report.cheque</field>
286
<field name="type">form</field>
287
<field name="arch" type="xml">
288
<form string="Report Cheque">
289
<field name="name" />
291
<field name="adjustment_x" />
292
<field name="adjustment_y" />
293
<field name="line_id" colspan="4" widget="one2many_list" nolabel="1">
294
<form string="Cheque Line">
295
<field name="field_id" domain="[('model','=','payment.cheque')]"/>
296
<field name="method"/>
302
<tree editable="top" string="Cheque Line">
303
<field name="field_id" domain="[('model','=','payment.cheque')]"/>
304
<field name="method"/>
314
<record model="ir.ui.view" id="view_report_cheque_tree">
315
<field name="name">report.cheque.tree</field>
316
<field name="model">report.cheque</field>
317
<field name="type">tree</field>
318
<field name="arch" type="xml">
319
<tree string="Report Cheque">
320
<field name="name" />
324
<record model="ir.actions.act_window" id="action_report_cheque_form">
325
<field name="name">Report Cheque</field>
326
<field name="res_model">report.cheque</field>
327
<field name="view_type">form</field>
328
<field name="view_mode">tree,form</field>
330
<menuitem parent="account_payment.next_id_44" id="menu_action_report_cheque_form" action="action_report_cheque_form"/>
331
<!-- <menuitem name="Financial Management/Payment/" id="menu_action_report_cheque_form" action="action_report_cheque_form"/>-->
333
# ------------------------------------------------------
334
# Account Teasury View
335
# ------------------------------------------------------
336
<record model="ir.ui.view" id="view_account_global_treasury_form">
337
<field name="name">account.global.treasury.form</field>
338
<field name="model">account.global.treasury</field>
339
<field name="type">form</field>
340
<field name="arch" type="xml">
341
<form string="Global Treasury">
343
<field name="company_id" on_change="onchange_company_id(company_id)"/>
344
<separator colspan="4" string="Global Bank Accounts"/>
345
<field name="line_ids" colspan="4" widget="one2many_list" nolabel="1" attrs="{'readonly':[('state','=','done')]}">
346
<form string="Bank Account">
347
<field name="name" select="1" />
348
<separator colspan="4"/>
349
<field name="global_id"/>
351
<field name="url" readonly="1"/>
354
<field name="login"/>
356
<field name="password" password="True"/>
358
<tree string="Bank Account">
359
<field name="name" />
360
<field name="statement_amount" sum="Total Amount in Bank"/>
361
<field name="transit_amount" sum="Total Amount in Transit"/>
362
<field name="available_amount" sum="Total Amount Available" />
365
<separator colspan="4" string="States"/>
366
<field name="state" select="1" readonly="1"/>
367
<group col="2" colspan="2">
368
<button name="%(wizard_search_global_treasury)d" string="Search Global Treasury" type="action" states="draft"/>
369
<button name="cancel" states="done" string="Cancel" type="object"/>
375
<record model="ir.ui.view" id="view_account_global_treasury_tree">
376
<field name="name">account.global.treasury.tree</field>
377
<field name="model">account.global.treasury</field>
378
<field name="type">tree</field>
379
<field name="arch" type="xml">
380
<tree string="Global Treasury">
382
<field name="statement_amount" />
383
<field name="transit_amount" />
384
<field name="available_amount"/>
388
<record model="ir.actions.act_window" id="action_account_global_treasury_form">
389
<field name="name">Global Treasury</field>
390
<field name="res_model">account.global.treasury</field>
391
<field name="view_type">form</field>
392
<field name="view_mode">tree,form</field>
394
<menuitem id="menu_action_account_global_treasury_form" action="action_account_global_treasury_form" parent="account_payment.menu_main" sequence="10"/>
396
<record model="ir.ui.view" id="view_account_treasury_form">
397
<field name="name">account.treasury.form</field>
398
<field name="model">account.treasury</field>
399
<field name="type">form</field>
400
<field name="arch" type="xml">
401
<form string="Treasury">
403
<field name="company_id" on_change="onchange_company_id(company_id)"/>
404
<separator colspan="4"/>
405
<field name="line_ids" colspan="4" widget="one2many_list" nolabel="1" readonly="1">
406
<form string="Bank Account">
407
<field name="mode" />
408
<field name="statement_amount" />
409
<field name="transit_amount" />
410
<field name="available_amount"/>
412
<tree string="Bank Account">
413
<field name="mode" />
414
<field name="statement_amount" sum="Total Amount in Bank"/>
415
<field name="transit_amount" sum="Total Amount in Transit"/>
416
<field name="available_amount" sum="Total Amount Available" />
419
<separator colspan="4" string="States"/>
420
<field name="state" select="1" readonly="1"/>
421
<group col="2" colspan="2">
422
<button name="create_accounts" states="draft" string="Create Accounts" type="object"/>
423
<button name="cancel" states="done" string="Cancel" type="object"/>
429
<record model="ir.ui.view" id="view_account_treasury_tree">
430
<field name="name">account.treasury.tree</field>
431
<field name="model">account.treasury</field>
432
<field name="type">tree</field>
433
<field name="arch" type="xml">
434
<tree string="Treasury">
436
<field name="company_id"/>
437
<field name="statement_amount" />
438
<field name="transit_amount" />
439
<field name="available_amount"/>
443
<record model="ir.actions.act_window" id="action_account_treasury_form">
444
<field name="name">Treasury</field>
445
<field name="res_model">account.treasury</field>
446
<field name="view_type">form</field>
447
<field name="view_mode">tree,form</field>
449
<menuitem id="menu_action_account_treasury_form" action="action_account_treasury_form" parent="account_payment.menu_main" sequence="8"/>
451
<record model="ir.ui.view" id="view_account_treasury_accouunt_form">
452
<field name="name">account.treasury.account.form</field>
453
<field name="model">account.treasury.account</field>
454
<field name="type">form</field>
455
<field name="arch" type="xml">
456
<form string="Treasury Account">
457
<field name="mode" />
458
<field name="journal_id_statement" />
459
<field name="statement_amount" />
460
<field name="transit_amount" />
461
<field name="available_amount" />
465
<record model="ir.ui.view" id="view_account_treasury_account_tree">
466
<field name="name">account.treasury.account.tree</field>
467
<field name="model">account.treasury.account</field>
468
<field name="type">tree</field>
469
<field name="arch" type="xml">
470
<tree string="Treasury Account">
471
<field name="mode" />
472
<field name="statement_amount" />
473
<field name="transit_amount" />
474
<field name="available_amount" sum="Total Amount Available" />
478
<record model="ir.actions.act_window" id="action_account_treasury_account_form">
479
<field name="name">Treasury Account</field>
480
<field name="res_model">account.treasury.account</field>
481
<field name="view_type">form</field>
482
<field name="view_mode">tree,form</field>
485
=========================================================
487
=========================================================
488
<record model="ir.ui.view" id="view_payment_export_file_form">
489
<field name="name">payment.export.file.form</field>
490
<field name="model">payment.export.file</field>
491
<field name="type">form</field>
492
<field name="arch" type="xml">
493
<form string="File Export Fields">
494
<separator colspan="4" string="General Information"/>
495
<field name="name" />
496
<field name="code" />
497
<separator colspan="4" string="Formats"/>
498
<field name="date" />
499
<field name="number" />
500
<separator colspan="4" string="Bank Codes"/>
501
<field name="same_bnk" />
502
<field name="other_bnk" />
503
<field name="line_id" colspan="4" widget="one2many_list" nolabel="1">
504
<form string="Export Fields">
505
<field name="sequence"/>
509
<field name="length"/>
510
<field name="start"/>
512
<field name="required"/>
513
<group colspan="2" col="3">
514
<field name="condition"/>
515
<field name="operator"/>
516
<field name="value"/>
518
<field name="notes"/>
519
<field name="std_field"/>
521
<tree editable="bottom" string="Cheque Line">
522
<field name="sequence"/>
526
<field name="length"/>
527
<field name="required"/>
528
<field name="condition"/>
529
<field name="operator"/>
530
<field name="value"/>
531
<field name="std_field"/>
537
<record model="ir.ui.view" id="view_payment_export_file_tree">
538
<field name="name">payment.export.file.tree</field>
539
<field name="model">payment.export.file</field>
540
<field name="type">tree</field>
541
<field name="arch" type="xml">
542
<tree string="File Export Fields">
543
<field name="name" />
544
<field name="code" />
548
<record model="ir.actions.act_window" id="action_payment_export_file_form">
549
<field name="name">File Export Fields</field>
550
<field name="res_model">payment.export.file</field>
551
<field name="view_type">form</field>
552
<field name="view_mode">tree,form</field>
554
<menuitem parent="account_payment.next_id_44" id="menu_action_payment_export_file_form" action="action_payment_export_file_form" />
556
<!-- **********************************************************************
557
Add fields debit and credit reconcile account jounal view
558
**********************************************************************-->
559
<!-- <record id="view_account_journal_2" model="ir.ui.view">
560
<field name="name">account.journal.form.2</field>
561
<field name="model">account.journal</field>
562
<field name="inherit_id" ref="account.view_account_journal_form"/>
563
<field name="type">form</field>
564
<field name="arch" type="xml">
565
<field name="entry_posted" position="after">
566
<field name="debit_rec_acc"/>
567
<field name="credit_rec_acc"/>
572
<!-- **********************************************************************
573
Inherit partner_id in statement view
574
**********************************************************************-->
575
<!-- <record id="view_bank_statement_form_2" model="ir.ui.view">
576
<field name="name">account.bank.statement.form.2</field>
577
<field name="model">account.bank.statement</field>
578
<field name="inherit_id" ref="account.view_bank_statement_form"/>
579
<field name="type">form</field>
580
<field name="arch" type="xml">
581
<field name="partner_id" position="replace">
582
<field name="partner_id" on_change="onchange_partner_id(partner_id, type, parent.currency, parent.journal_id, account_id)"/>
587
<!-- **********************************************************************
588
Inherit statement view button import invoice
589
**********************************************************************-->
590
<!-- <record id="view_bank_statement_form_3" model="ir.ui.view">
591
<field name="name">account.bank.statement.form.3</field>
592
<field name="model">account.bank.statement</field>
593
<field name="inherit_id" ref="account.view_bank_statement_form"/>
594
<field name="type">form</field>
595
<field name="arch" type="xml">
596
<button name="%(account.wizard_populate_statement_from_inv)d" position="replace">
597
<button name="%(wizard_populate_statement_from_invoice)d"
598
string="Import Invoice" type="action" attrs="{'invisible':[('state','=','confirm')]}"/>
603
<!-- Cheque Report -->
605
string="Unreconciled Cheque"
606
model="payment.cheque"
607
name="payment.cheque.unreconciled"
609
id="wizard_unreconciled_cheque"/>
611
parent="menu_action_cheque_form"
612
action="wizard_unreconciled_cheque"
614
icon="STOCK_JUSTIFY_FILL"
616
id="menu_unreconciled_cheque"/>