/
account_view.xml
2368 lines (2269 loc) · 134 KB
/
account_view.xml
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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!-- Accounts -->
<record id="view_account_form" model="ir.ui.view">
<field name="name">account.account.form</field>
<field name="model">account.account</field>
<field name="arch" type="xml">
<form string="Account">
<sheet>
<group>
<group>
<field name="code" placeholder="code"/>
<field name="name"/>
<field name="user_type_id" widget="selection"/>
<field name="tax_ids" widget="many2many_tags" domain="[('company_id','=',company_id)]"/>
<field name="tag_ids" widget="many2many_tags" domain="[('applicability', '!=', 'taxes')]" context="{'default_applicability': 'accounts'}" options="{'no_create_edit': True}"/>
<field name="group_id"/>
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
<field name="currency_id" options="{'no_create': True}" groups="base.group_multi_currency"/>
<field name="internal_type" invisible="1" readonly="1"/>
<label for="reconcile"/>
<div>
<field name="reconcile"/>
<button name="action_open_reconcile" class="oe_link" type="object" string=" -> Reconcile" attrs="{'invisible': [('reconcile', '=', False)]}"/>
</div>
<field name="deprecated"/>
</group>
<group>
<div class="row">
<div class="col-md-11 col-md-offset-1 col-sm-12 no-margin-top" style="background-color: #eee">
<p class="text-center" style="font-weight: bold;">How do account types affect your reports?</p>
<div class="col-md-6 col-sm-6">
<div class="oe_account_help">
<p class="oe_account_font_help text-center">Profit & Loss</p>
<p class="oe_account_font_help oe_account_font_title">Income</p>
<p class="oe_account_font_help oe_account_font_title">Minus Cost of Revenue</p>
<p class="oe_account_font_help" style="color: grey;border-top: 2px solid;border-bottom: 2px solid;">GROSS PROFIT</p>
<p class="oe_account_font_help oe_account_font_title">Plus Other Income</p>
<p class="oe_account_font_help oe_account_font_title">Minus Expenses</p>
<p class="oe_account_font_help oe_account_font_content">Expenses</p>
<p class="oe_account_font_help oe_account_font_content">Depreciation</p>
<p class="oe_account_font_help" style="color: grey;border-top: 2px solid;border-bottom: 2px solid;">NET PROFIT</p>
<div style="position: relative; width: 250px; height: 277px;" id="layer">
<div style="position: relative; left: 0px; top: 0px; visibility: visible; width: 250px; height: 277px;">
<svg pointer-events="none" overflow="auto" width="712.5" height="265" viewBox="-4 -4 712.5 265" style="position: relative; top: -4px; left: -4px; overflow: auto; visibility: visible; width: 400.5px; height: 265px;">
<defs>
<marker id="arrow" markerWidth="70" markerHeight="70" refx="10" refy="6" orient="auto">
<path d="M2,1 L2,12 L10,6 L2,1" stroke="rgb(173,216,230)" fill="rgb(173,216,230)"/>
</marker>
</defs>
<path pointer-events="visiblePainted" shape-rendering="auto" d="M 150 -110 q 270 100 150 150 t 160 120" fill="none" stroke-dasharray="8,3" stroke="rgb(173,216,230)" stroke-linecap="butt" stroke-width="4" stroke-opacity="1" stroke-linejoin="round" transform="matrix(1,0,0,1,0,0)" fill-opacity="1" style="marker-end: url(#arrow);">
</path>
</svg>
</div>
</div>
</div>
</div>
<div class="col-md-6 col-sm-6">
<div class="oe_account_help">
<p class="oe_account_font_help text-center">Balance Sheet</p>
<p class="oe_account_font_help oe_account_font_title" style="color: grey;">Current Assets</p>
<p class="oe_account_font_help oe_account_font_content">Receivable Accounts</p>
<p class="oe_account_font_help oe_account_font_content">Prepayments</p>
<p class="oe_account_font_help oe_account_font_title">Plus Bank</p>
<p class="oe_account_font_help oe_account_font_title">Plus Fixed Assets</p>
<p class="oe_account_font_help oe_account_font_title">Plus Non-Current Assets</p>
<p class="oe_account_font_help" style="color: grey;border-top: 2px solid;border-bottom: 2px solid;">TOTAL ASSETS</p>
<p class="oe_account_font_help oe_account_font_title">Minus Current Liabilities</p>
<p class="oe_account_font_help oe_account_font_title">Minus Credit Card Accounts</p>
<p class="oe_account_font_help oe_account_font_title">Minus Payable Accounts</p>
<p class="oe_account_font_help oe_account_font_title">Minus Non-Current Liabilities</p>
<p class="oe_account_font_help" style="color: grey;border-top: 2px solid;border-bottom: 2px solid;">NET ASSETS</p>
<p class="oe_account_font_help oe_account_font_title">Equity</p>
<p class="oe_account_font_help oe_account_font_title">Plus Net Profit</p>
<p class="oe_account_font_help" style="color: grey;border-top: 2px solid;border-bottom: 2px solid;">TOTAL EQUITY</p>
</div>
</div>
</div>
</div>
</group>
</group>
</sheet>
</form>
</field>
</record>
<record id="view_account_list" model="ir.ui.view">
<field name="name">account.account.list</field>
<field name="model">account.account</field>
<field name="arch" type="xml">
<tree string="Chart of accounts" toolbar="1" >
<field name="code"/>
<field name="name"/>
<field name="user_type_id"/>
<field name="currency_id" options="{'no_create': True}" groups="base.group_multi_currency"/>
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
</tree>
</field>
</record>
<record id="view_account_account_kanban" model="ir.ui.view">
<field name="name">account.account.kanban</field>
<field name="model">account.account</field>
<field name="arch" type="xml">
<kanban class="o_kanban_mobile">
<field name="name"/>
<field name="code"/>
<field name="user_type_id"/>
<templates>
<t t-name="kanban-box">
<div t-attf-class="oe_kanban_global_click">
<div class="row">
<div class="col-xs-6">
<strong><field name="name"/></strong>
</div>
<div class="col-xs-6 text-right">
<span class="badge"><t t-esc="record.code.value"/></span>
</div>
</div>
<div>
<strong>Type: </strong><t t-esc="record.user_type_id.value"/>
</div>
</div>
</t>
</templates>
</kanban>
</field>
</record>
<record id="view_account_search" model="ir.ui.view">
<field name="name">account.account.search</field>
<field name="model">account.account</field>
<field name="arch" type="xml">
<search string="Accounts">
<field name="name" filter_domain="['|', ('name','ilike',self), ('code','=like',str(self)+'%')]" string="Account"/>
<filter string="Receivable Accounts" name="receivableacc" domain="[('internal_type','=','receivable')]"/>
<filter string="Payable Accounts" name="payableacc" domain="[('internal_type','=','payable')]"/>
<field name="user_type_id"/>
<group expand="0" string="Group By">
<filter string="Account Type" name="accounttype" domain="" context="{'group_by':'user_type_id'}"/>
</group>
</search>
</field>
</record>
<record id="action_account_form" model="ir.actions.act_window">
<field name="name">Chart of Accounts</field>
<field name="res_model">account.account</field>
<field name="view_type">form</field>
<field name="view_mode">tree,kanban,form</field>
<field name="search_view_id" ref="view_account_search"/>
<field name="view_id" ref="view_account_list"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Add a new account
</p><p>
An account is part of a ledger allowing your company
to register all kinds of debit and credit transactions.
Companies present their annual accounts in two main parts: the
balance sheet and the income statement (profit and loss
account). The annual accounts of a company are required by law
to disclose a certain amount of information.
</p>
</field>
</record>
<menuitem action="action_account_form" id="menu_action_account_form" parent="account_account_menu" groups="account.group_account_user" sequence="0"/>
<act_window
id="act_account_acount_move_line_open_unreconciled"
name="Unreconciled Entries"
res_model="account.move.line"
context="{'search_default_account_id':[active_id], 'search_default_unreconciled':1, 'default_account_id': active_id}"
src_model="account.account"/>
<act_window
id="action_move_line_select"
name="Journal Items"
context="{'search_default_account_id': [active_id]}"
res_model="account.move.line"
src_model="account.account"/>
<act_window
id="action_move_select"
name="Journal Entries"
context="{'search_default_dummy_account_id': [active_id]}"
res_model="account.move"/>
<act_window
id="action_move_line_select_by_type"
name="Journal Items"
context="{'search_default_user_type_id': [active_id]}"
res_model="account.move.line"
src_model="account.account.type"/>
<act_window
id="action_move_line_select_by_partner"
name="Journal Items"
context="{'search_default_partner_id': [active_id]}"
res_model="account.move.line"/>
<!-- Account Journal -->
<record id="view_account_journal_tree" model="ir.ui.view">
<field name="name">account.journal.tree</field>
<field name="model">account.journal</field>
<field name="priority">1</field>
<field name="arch" type="xml">
<tree string="Account Journal">
<field name='sequence' widget='handle'/>
<field name="name"/>
<field name="type"/>
<field name="belongs_to_company" invisible="1"/>
<field name="company_id" groups="base.group_multi_company"/>
</tree>
</field>
</record>
<record id="account_journal_view_kanban" model="ir.ui.view">
<field name="name">account.journal.kanban</field>
<field name="model">account.journal</field>
<field name="priority">1</field>
<field name="arch" type="xml">
<kanban class="o_kanban_mobile">
<templates>
<t t-name="kanban-box">
<div t-attf-class="oe_kanban_content oe_kanban_global_click">
<div class="row">
<div class="col-xs-6">
<strong><field name="name"/></strong>
</div>
<div class="col-xs-6">
<span class="pull-right"><field name="type"/></span>
</div>
</div>
</div>
</t>
</templates>
</kanban>
</field>
</record>
<record id="view_account_journal_search" model="ir.ui.view">
<field name="name">account.journal.search</field>
<field name="model">account.journal</field>
<field name="priority">1</field>
<field name="arch" type="xml">
<search string="Search Account Journal">
<field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Journal"/>
<filter string="Archived" name="inactive" domain="[('active','=',False)]"/>
<filter name="sales" domain="[('type', '=', 'sale')]" string="Sales"/>
<filter name="purchases" domain="[('type', '=', 'purchase')]" string="Purchases"/>
<filter name="liquidity" domain="['|', ('type', '=', 'cash'), ('type', '=', 'bank')]" string="Liquidity"/>
<filter name="miscellaneous" domain="[('type', 'not in', ['sale', 'purchase', 'cash', 'bank'])]" string="Miscellaneous"/>
<filter name="dashboard" string="Favorites" domain="[('show_on_dashboard', '=', True)]"/>
</search>
</field>
</record>
<record id="view_account_journal_form" model="ir.ui.view">
<field name="name">account.journal.form</field>
<field name="model">account.journal</field>
<field name="priority">1</field>
<field name="arch" type="xml">
<form string="Account Journal">
<sheet>
<div class="oe_button_box" name="button_box">
<button class="oe_stat_button" type="object" name="toggle_active" icon="fa-archive">
<field name="active" widget="boolean_button" options='{"terminology": "archive"}'/>
</button>
</div>
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1><field name="name" class="oe_inline"/></h1>
</div>
<group>
<group>
<field name="type"/>
</group>
<group>
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
<field name="company_partner_id" invisible="1"/>
</group>
</group>
<notebook>
<page name="journal_entries" string="Journal Entries">
<group>
<group>
<field name="code"/>
<label for="sequence_number_next"/>
<div>
<field name="sequence_number_next" style="padding-right: 1.0em"/>
<field name="sequence_id" required="0"
attrs="{'readonly': 1}" groups="base.group_no_one"/>
</div>
<field name="refund_sequence"
attrs="{'invisible': [('type', 'not in', ['sale', 'purchase'])]}"
groups="base.group_no_one"/>
<label for="refund_sequence_number_next"
attrs="{'invisible': ['|',('type', 'not in', ['sale', 'purchase']), ('refund_sequence', '!=', True)]}"/>
<div attrs="{'invisible': ['|',('type', 'not in', ['sale', 'purchase']), ('refund_sequence', '!=', True)]}">
<field name="refund_sequence_number_next" style="padding-right: 1.0em"/>
<field name="refund_sequence_id" required="0"
attrs="{'readonly': 1}" groups="base.group_no_one"/>
</div>
</group>
<group>
<field name="default_debit_account_id" domain="[('deprecated', '=', False)]" groups="account.group_account_user"/>
<field name="default_credit_account_id" domain="[('deprecated', '=', False)]" groups="account.group_account_user"/>
<field name="currency_id" options="{'no_create': True}" groups="base.group_multi_currency"/>
</group>
</group>
</page>
<page name="bank_account" string="Bank Account" attrs="{'invisible': [('type', '!=', 'bank')]}">
<group>
<group>
<field name="company_partner_id" invisible="1"/>
<field name="bank_account_id"/>
<field name="bank_id"/>
</group>
<group >
<field name="bank_statements_source" widget="radio" attrs="{'required': [('type', '=', 'bank')]}" groups="account.group_account_user"/>
</group>
</group>
</page>
<page name="advanced_settings" string="Advanced Settings">
<group>
<group string="Control-Access" groups="base.group_no_one">
<div class="text-muted" colspan="2">Keep empty for no control</div>
<field name="type_control_ids" widget="many2many_tags"/>
<field name="account_control_ids" widget="many2many_tags"/>
</group>
<group string="Payment Method Types">
<field name="inbound_payment_method_ids" widget="many2many_checkboxes" attrs="{'invisible': [('type', 'not in', ['bank', 'cash'])]}"/>
<field name="outbound_payment_method_ids" widget="many2many_checkboxes" attrs="{'invisible': [('type', 'not in', ['bank', 'cash'])]}"/>
<field name="group_invoice_lines" attrs="{'invisible': [('type', 'not in', ['sale', 'purchase'])]}"/>
</group>
<group string="Accounting App Options" groups="account.group_account_user" attrs="{'invisible': [('type', '!=', 'cash')]}">
<field name="profit_account_id"/>
<field name="loss_account_id"/>
</group>
<group name="group_alias" string="Email your Vendor Bills" attrs="{'invisible': [('type', '!=', 'purchase')]}">
<label string="Email Alias" attrs="{'invisible': [('alias_domain', '=', False)]}" for="alias_id"/>
<div name="alias_def" attrs="{'invisible': [('alias_domain', '=', False)]}">
<field name="alias_id" class="oe_read_only oe_inline"/>
<div class="oe_edit_only oe_inline" name="edit_alias" style="display: inline;" >
<field name="alias_name" class="oe_inline"/>@<field name="alias_domain" class="oe_inline" readonly="1"/>
</div>
</div>
<div class="content-group" attrs="{'invisible': [('alias_domain', '!=', False)]}">
<a type='action' name='%(action_open_settings)d' class="btn btn-sm btn-link" role="button"><i class="fa fa-fw o_button_icon fa-arrow-right"/> Configure Email Servers</a>
</div>
</group>
</group>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="view_account_bank_journal_tree" model="ir.ui.view">
<field name="name">account.bank.journal.tree</field>
<field name="model">account.journal</field>
<field name="priority">10</field>
<field name="arch" type="xml">
<tree string="Account Journal">
<field name='sequence' widget='handle'/>
<field name="name"/>
<field name="bank_acc_number"/>
<field name="company_id" groups="base.group_multi_company"/>
</tree>
</field>
</record>
<record id="account_bank_journal_view_kanban" model="ir.ui.view">
<field name="name">account.bank.journal.kanban</field>
<field name="model">account.journal</field>
<field name="priority">10</field>
<field name="arch" type="xml">
<kanban class="o_kanban_mobile">
<templates>
<t t-name="kanban-box">
<div t-attf-class="oe_kanban_content oe_kanban_global_click">
<div class="row">
<div class="col-xs-12">
<strong><field name="name"/></strong>
</div>
</div>
</div>
</t>
</templates>
</kanban>
</field>
</record>
<record id="view_account_bank_journal_form" model="ir.ui.view">
<field name="name">account.bank.journal.form</field>
<field name="model">account.journal</field>
<field name="priority">10</field>
<field name="arch" type="xml">
<form string="Bank Account">
<sheet>
<field name="type" invisible="1"/>
<div class="oe_title">
<label for="name" class="oe_edit_only" string="Bank Account Name"/>
<h1><field name="name"/></h1>
</div>
<group>
<group>
<field name="bank_acc_number"/>
<field name="bank_id" readonly="1"/>
</group>
<group>
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
<field name="currency_id" options="{'no_create': True}" groups="base.group_multi_currency"/>
</group>
</group>
<group>
<div name="advanced_info"> <!--The content of this div is hidden in the setup wizard inheriting this form view-->
<group string="Payment Method Types">
<field name="inbound_payment_method_ids" widget="many2many_checkboxes"/>
<field name="outbound_payment_method_ids" widget="many2many_checkboxes"/>
</group>
</div>
<group name="bank_statement" string="Bank Statements" groups="account.group_account_user">
<label for="bank_statements_source"/>
<div name="bank_source">
<field name="bank_statements_source" widget="radio" attrs="{'required': [('type', '=', 'bank')]}"/>
</div>
</group>
</group>
</sheet>
</form>
</field>
</record>
<record id="action_account_bank_journal_form" model="ir.actions.act_window">
<field name="name">Bank Accounts</field>
<field name="res_model">account.journal</field>
<field name="view_mode">tree,kanban,form</field>
<field name="view_ids" eval="[(5, 0, 0),
(0, 0, {'view_mode': 'tree', 'view_id': ref('view_account_bank_journal_tree')}),
(0, 0, {'view_mode': 'kanban', 'view_id': ref('account_bank_journal_view_kanban')}),
(0, 0, {'view_mode': 'form', 'view_id': ref('view_account_bank_journal_form')})]"/>
<field name="domain">[('type', '=', 'bank')]</field>
<field name="context">{'default_type': 'bank'}</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a bank account
</p>
</field>
</record>
<menuitem action="action_account_bank_journal_form" id="menu_action_account_bank_journal_form" parent="account_account_menu" groups="account.group_account_manager" sequence="8"/>
<record id="action_account_journal_form" model="ir.actions.act_window">
<field name="name">Journals</field>
<field name="res_model">account.journal</field>
<field name="view_type">form</field>
<field name="view_mode">tree,kanban,form</field>
<field name="view_ids" eval="[(5, 0, 0),
(0, 0, {'view_mode': 'tree', 'view_id': ref('view_account_journal_tree')}),
(0, 0, {'view_mode': 'kanban', 'view_id': ref('account_journal_view_kanban')}),
(0, 0, {'view_mode': 'form', 'view_id': ref('view_account_journal_form')})]"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Add a journal
</p><p>
A journal is used to record transactions of all accounting data
related to the day-to-day business.
</p>
</field>
</record>
<menuitem action="action_account_journal_form" id="menu_action_account_journal_form" parent="account_account_menu" groups="account.group_account_manager"/>
<act_window
id="act_account_journal_2_account_bank_statement"
name="Bank statements"
context="{'search_default_journal_id': active_id, 'default_journal_id': active_id}"
res_model="account.bank.statement"
src_model="account.journal"/>
<act_window
id="act_account_journal_2_account_move_line"
name="Journal Items"
context="{'search_default_journal_id': active_id, 'default_journal_id': active_id}"
res_model="account.move.line"
src_model="account.journal"
view_mode="tree"/>
<!-- Tags -->
<record id="account_tag_view_form" model="ir.ui.view">
<field name="name">Tags</field>
<field name="model">account.account.tag</field>
<field name="arch" type="xml">
<form string="Tags">
<sheet>
<div class="oe_button_box" name="button_box">
<button class="oe_stat_button" type="object" name="toggle_active" icon="fa-archive">
<field name="active" widget="boolean_button" options='{"terminology": "archive"}'/>
</button>
</div>
<group>
<field name="name"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="account_tag_action" model="ir.actions.act_window">
<field name="name">Account Tags</field>
<field name="res_model">account.account.tag</field>
<field name="view_type">form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Add a new tag
</p>
</field>
</record>
<!-- Bank statement -->
<record id="view_account_bnk_stmt_cashbox" model="ir.ui.view">
<field name="name">account.bnk_stmt_cashbox.form</field>
<field name="model">account.bank.statement.cashbox</field>
<field name="arch" type="xml">
<form>
<group>
<field name="cashbox_lines_ids" nolabel="1">
<tree editable="bottom">
<field name="coin_value"/>
<field name="number"/>
<field name="subtotal" sum="Total"/>
</tree>
</field>
</group>
<footer>
<button string="Confirm" name="validate" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-default" special="cancel"/>
</footer>
</form>
</field>
</record>
<record id="action_view_account_bnk_stmt_cashbox" model="ir.actions.act_window">
<field name="name">Cash Control</field>
<field name="res_model">account.bank.statement.cashbox</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="view_account_bnk_stmt_cashbox"/>
<field name="target">new</field>
</record>
<record id="view_account_bnk_stmt_check" model="ir.ui.view">
<field name="name">account.bnk_stmt_check.form</field>
<field name="model">account.bank.statement.closebalance</field>
<field name="arch" type="xml">
<form>
<div>
<p>The closing balance is different than the computed one!</p>
<p>Confirming this will create automatically a journal entry with the difference in the profit/loss account set on the cash journal.</p>
<footer>
<button string="Confirm" name="validate" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-default" special="cancel"/>
</footer>
</div>
</form>
</field>
</record>
<record id="action_view_account_bnk_stmt_check" model="ir.actions.act_window">
<field name="name">Check Closing Balance</field>
<field name="res_model">account.bank.statement.closebalance</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="view_account_bnk_stmt_check"/>
<field name="target">new</field>
</record>
<record id="action_bank_reconcile_bank_statements" model="ir.actions.client">
<field name="name">Reconciliation on Bank Statements</field>
<field name="tag">bank_statement_reconciliation_view</field>
<field name="context">{'statement_ids': [active_id]}</field>
</record>
<record id="view_bank_statement_tree" model="ir.ui.view">
<field name="name">account.bank.statement.tree</field>
<field name="model">account.bank.statement</field>
<field name="arch" type="xml">
<tree decoration-danger="not is_difference_zero and state=='open'" decoration-info="state=='open' and is_difference_zero" string="Statements">
<field name="name"/>
<field name="date"/>
<field name="journal_id"/>
<field name="balance_start"/>
<field name="balance_end_real"/>
<field name="balance_end" invisible="1"/>
<field name="currency_id" invisible="1"/>
<field name="state"/>
<field name="is_difference_zero" invisible="1"/>
</tree>
</field>
</record>
<record id="view_bank_statement_search" model="ir.ui.view">
<field name="name">account.bank.statement.search</field>
<field name="model">account.bank.statement</field>
<field name="arch" type="xml">
<search string="Search Bank Statements">
<field name="name" string="Bank Statement"/>
<field name="date"/>
<filter string="Draft" name="draft" domain="[('state','=','open')]"/>
<filter string="Confirmed" name="confirmed" domain="[('state','=','confirm')]"/>
<field name="journal_id" domain="[('type', '=', 'bank')]" />
<group expand="0" string="Group By">
<filter string="Journal" name="journal" context="{'group_by': 'journal_id'}"/>
<filter string="Status" name="status" context="{'group_by': 'state'}"/>
<filter string="Date" name="date" context="{'group_by': 'date'}"/>
</group>
</search>
</field>
</record>
<record id="view_bank_statement_form" model="ir.ui.view">
<field name="name">account.bank.statement.form</field>
<field name="model">account.bank.statement</field>
<field name="priority">1</field>
<field name="arch" type="xml">
<form string="Bank Statement">
<header>
<field name="all_lines_reconciled" invisible="1" />
<button name="%(action_bank_reconcile_bank_statements)d" string="Reconcile" type="action" class="oe_highlight" attrs="{'invisible':['|','|',('all_lines_reconciled','=',True),('line_ids','=',[]),('state', '!=', 'open')]}"/>
<button name="check_confirm_bank" string="Validate" type="object" class="oe_highlight" attrs="{'invisible':['|','|',('all_lines_reconciled','=',False),('line_ids','=',[]),('state', '!=', 'open')]}"/>
<field name="state" widget="statusbar" statusbar_visible="open,confirm"/>
</header>
<sheet>
<div class="oe_button_box" name="button_box">
<button class="oe_stat_button" name="button_journal_entries"
string="Journal Entries" type="object"
attrs="{'invisible':[('move_line_count','=', 0)]}" icon="fa-bars" />
<field name="move_line_count" invisible="1"/>
</div>
<div class="oe_title oe_inline">
<label for="name" class="oe_edit_only"/>
<h1><field name="name"/></h1>
</div>
<group>
<group>
<field name="journal_type" invisible="1"/>
<field name="cashbox_start_id" invisible="1"/>
<field name="cashbox_end_id" invisible="1"/>
<field name="journal_id" domain="[('type', '=', journal_type)]" attrs="{'readonly': [('move_line_count','!=', 0)]}" widget="selection"/>
<field name="date"/>
<field name="accounting_date" groups="base.group_no_one"/>
<field name='company_id' options="{'no_create': True}" groups="base.group_multi_company" />
<field name="currency_id" invisible="1"/>
</group><group>
<label for="balance_start"/>
<div>
<field class="oe_inline" name="balance_start"/>
<button class="oe_inline oe_link oe_edit_only" name="%(action_view_account_bnk_stmt_cashbox)d"
string="→ Count" type="action"
attrs="{'invisible':['|','|',('state','!=','open'),('journal_type','!=','cash'),('cashbox_start_id','!=',False)]}" context="{'balance':'start'}"/>
<button name="open_cashbox_id" attrs="{'invisible': ['|','|',('state','!=','open'),('journal_type','!=','cash'),('cashbox_start_id', '=', False)]}" string="→ Count" type="object" class="oe_edit_only oe_link oe_inline" context="{'balance':'start', 'cashbox_id': cashbox_start_id}"/>
</div>
<label for="balance_end_real"/>
<div>
<field class="oe_inline" name="balance_end_real"/>
<button class="oe_inline oe_link oe_edit_only" name="%(action_view_account_bnk_stmt_cashbox)d"
string="→ Count" type="action"
attrs="{'invisible':['|','|',('state','!=','open'),('journal_type','!=','cash'),('cashbox_end_id','!=',False)]}" context="{'balance':'close'}"/>
<button name="open_cashbox_id" attrs="{'invisible': ['|','|',('state','!=','open'),('journal_type','!=','cash'),('cashbox_end_id', '=', False)]}" string="→ Count" type="object" class="oe_edit_only oe_link oe_inline" context="{'balance':'close', 'cashbox_id': cashbox_end_id}"/>
</div>
</group>
</group>
<notebook>
<page string="Transactions" name="statement_line_ids">
<field name="line_ids" context="{'date':date}">
<tree editable="bottom" string="Statement lines" decoration-muted="journal_entry_ids">
<field name="sequence" widget="handle"/>
<field name="journal_entry_ids" invisible="1"/>
<field name="date" attrs="{'readonly' : [('journal_entry_ids', '!=', [])] }"/>
<field name="name" attrs="{'readonly' : [('journal_entry_ids', '!=', [])] }"/>
<field name="partner_id" domain="['|',('parent_id','=',False),('is_company','=',True)]"
context="{'default_supplier': 1}"
attrs="{'readonly' : [('journal_entry_ids', '!=', [])] }"/>
<field name="ref" attrs="{'readonly' : [('journal_entry_ids', '!=', [])] }" groups="base.group_no_one"/>
<field name="amount" attrs="{'readonly' : [('journal_entry_ids', '!=', [])] }"/>
<field name="journal_currency_id" invisible="1"/>
<field name="amount_currency" invisible="1"/>
<field name="currency_id" invisible="1" />
<field name="bank_account_id" invisible="1" />
</tree>
</field>
</page>
</notebook>
<group class="oe_subtotal_footer oe_right" colspan="2" name="sale_total">
<div class="oe_subtotal_footer_separator oe_inline">
<label for="balance_end" />
</div>
<field name="balance_end" nolabel="1" class="oe_subtotal_footer_separator"/>
</group>
<div class="oe_clear"/>
</sheet>
</form>
</field>
</record>
<record id="action_bank_statement_tree" model="ir.actions.act_window">
<field name="name">Bank Statements</field>
<field name="res_model">account.bank.statement</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form,pivot,graph</field>
<field name="domain">[('journal_id.type', '=', 'bank')]</field>
<field name="context">{'journal_type':'bank'}</field>
<field name="search_view_id" ref="view_bank_statement_search"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Register a bank statement
</p><p>
A bank statement is a summary of all financial transactions
occurring over a given period of time on a bank account. You
should receive this periodicaly from your bank.
</p><p>
Odoo allows you to reconcile a statement line directly with
the related sale or puchase invoices.
</p>
</field>
</record>
<record model="ir.actions.act_window.view" id="action_bank_statement_tree_bank">
<field name="sequence" eval="1"/>
<field name="view_mode">tree</field>
<field name="view_id" ref="view_bank_statement_tree"/>
<field name="act_window_id" ref="action_bank_statement_tree"/>
</record>
<record model="ir.actions.act_window.view" id="action_bank_statement_form_bank">
<field name="sequence" eval="2"/>
<field name="view_mode">form</field>
<field name="view_id" ref="view_bank_statement_form"/>
<field name="act_window_id" ref="action_bank_statement_tree"/>
</record>
<record id="view_bank_statement_line_search" model="ir.ui.view">
<field name="name">account.bank.statement.line.search</field>
<field name="model">account.bank.statement.line</field>
<field name="arch" type="xml">
<search string="Search Bank Statements Line">
<field name="name"/>
<field name="statement_id"/>
<field name="partner_id"/>
<field name="date"/>
<field name="journal_id" domain="[('type', 'in', ('bank', 'cash'))]" />
</search>
</field>
</record>
<record id="view_bank_statement_line_form" model="ir.ui.view">
<field name="name">bank.statement.line.form</field>
<field name="model">account.bank.statement.line</field>
<field name="priority">8</field>
<field name="arch" type="xml">
<form string="Statement Line" create="false">
<group col="4">
<field name="statement_id"/>
<field name="date"/>
<field name="name"/>
<field name="ref"/>
<field name="partner_id"/>
<field name="amount"/>
<field name="journal_currency_id" invisible="1"/>
<field name="sequence"/>
<field name="note"/>
</group>
</form>
</field>
</record>
<record id="view_bank_statement_line_tree" model="ir.ui.view">
<field name="name">account.bank.statement.line.tree</field>
<field name="model">account.bank.statement.line</field>
<field name="priority">8</field>
<field name="arch" type="xml">
<tree string="Statement lines" create="false">
<field name="sequence" readonly="1" invisible="1"/>
<field name="statement_id" />
<field name="journal_id" invisible="1" />
<field name="date"/>
<field name="name"/>
<field name="ref"/>
<field name="partner_id"/>
<field name="amount"/>
<field name="journal_currency_id" invisible="1"/>
</tree>
</field>
</record>
<record id="action_bank_statement_line" model="ir.actions.act_window">
<field name="name">Bank Statement Lines</field>
<field name="res_model">account.bank.statement.line</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[]</field>
<field name="context">{}</field>
<field name="search_view_id" ref="view_bank_statement_line_search"/>
<field name="help" type="html">
<p class="o_view_nocontent_empty_folder">
A bank statement line is a financial transaction on a bank account
</p><p>
Odoo allows you to reconcile a statement line directly with
the related sale or puchase invoice(s).
</p>
</field>
</record>
<record id="action_bank_statement_draft_tree" model="ir.actions.act_window">
<field name="name">Draft statements</field>
<field name="res_model">account.bank.statement</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('state','=','draft')]</field>
<field name="filter" eval="True"/>
</record>
<record id="action_bank_reconcile" model="ir.actions.client">
<field name="name">Reconciliation on Bank Statements</field>
<field name="res_model">account.bank.statement.line</field>
<field name="tag">bank_statement_reconciliation_view</field>
</record>
<record id="action_manual_reconcile" model="ir.actions.client">
<field name="name">Journal Items to Reconcile</field>
<field name="res_model">account.move.line</field>
<field name="tag">manual_reconciliation_view</field>
</record>
<record id="view_account_reconcile_model_form" model="ir.ui.view">
<field name="name">account.reconcile.model.form</field>
<field name="model">account.reconcile.model</field>
<field name="arch" type="xml">
<form string="Operation Templates">
<sheet>
<div class="oe_title">
<label for="name" class="oe_edit_only"/>
<h1><field name="name" placeholder="e.g. Bank Fees"/></h1>
</div>
<group>
<group>
<field name="account_id" domain="[('company_id', '=', company_id)]"/>
<field name="amount_type"/>
<field name="tax_id" domain="[('company_id', '=', company_id)]" options="{'no_create': True}" />
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
<field name="analytic_tag_ids" groups="analytic.group_analytic_tags" widget="many2many_tags"/>
<field name="company_id" groups="base.group_multi_company"/>
</group>
<group>
<field name="label"/>
<label for="amount"/>
<div>
<field name="amount" class="oe_inline"/>
<span class="o_form_label oe_inline" attrs="{'invisible':[('amount_type','!=','percentage')]}">%</span>
</div>
<field name="journal_id" domain="[('company_id', '=', company_id)]" widget="selection"/>
</group>
</group>
<div class="oe_edit_only">
<field name="has_second_line" />
<label for="has_second_line" string="Add a second line"/>
</div>
<group attrs="{'invisible':[('has_second_line','!=',True)]}">
<group>
<field name="second_account_id" string="Account" domain="[('company_id', '=', company_id)]"/>
<field name="second_amount_type" string="Amount type"/>
<field name="second_tax_id" string="Tax" domain="[('company_id', '=', company_id)]" widget="selection"/>
<field name="second_analytic_account_id" string="Analytic Account" groups="analytic.group_analytic_accounting"/>
<field name="second_analytic_tag_ids" groups="analytic.group_analytic_tags" widget="many2many_tags"/>
</group>
<group>
<field name="second_label" string="Journal Item Label"/>
<label for="second_amount" string="Amount"/>
<div>
<field name="second_amount" class="oe_inline"/>
<span class="o_form_label oe_inline" attrs="{'invisible':[('amount_type','!=','percentage')]}">%</span>
</div>
<field name="second_journal_id" string="Journal" domain="[('company_id', '=', company_id)]" widget="selection"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
<record id="view_account_reconcile_model_tree" model="ir.ui.view">
<field name="name">account.reconcile.model.tree</field>
<field name="model">account.reconcile.model</field>
<field name="arch" type="xml">
<tree string="Bank Reconciliation Move Presets">
<field name="sequence" widget="handle" />
<field name="name"/>
<field name="account_id"/>
<field name="amount_type"/>
<field name="journal_id" invisible="1"/>
</tree>
</field>
</record>
<record id="view_account_reconcile_model_search" model="ir.ui.view">
<field name="name">account.reconcile.model.search</field>
<field name="model">account.reconcile.model</field>
<field name="arch" type="xml">
<search string="Bank Reconciliation Move preset">
<filter string="With tax" name="withtax" domain="[('tax_id','!=',False)]"/>
<field name="amount_type"/>
<field name="journal_id"/>
</search>
</field>
</record>
<record id="action_account_reconcile_model" model="ir.actions.act_window">
<field name="name">Reconciliation Models</field>
<field name="res_model">account.reconcile.model</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="view_account_reconcile_model_search"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a new reconciliation model
</p><p>
Those can be used to quickly create a journal items when reconciling
a bank statement or an account.
</p>
</field>
</record>
<menuitem
id="account_report_folder"
name="Reporting"
parent="account_account_menu"
groups="account.group_account_manager"
sequence="4"/>
<!-- Account Types -->
<record id="view_account_type_search" model="ir.ui.view">
<field name="name">account.account.type.search</field>
<field name="model">account.account.type</field>
<field name="arch" type="xml">
<search string="Account Type">
<field name="name" filter_domain="['|', ('name','ilike',self), ('type','ilike',self)]" string="Account Type"/>
</search>
</field>
</record>
<record id="view_account_type_tree" model="ir.ui.view">
<field name="name">account.account.type.tree</field>
<field name="model">account.account.type</field>
<field name="arch" type="xml">
<tree string="Account Type">
<field name="name"/>
<field name="type"/>
</tree>
</field>
</record>
<record id="view_account_type_form" model="ir.ui.view">
<field name="name">account.account.type.form</field>
<field name="model">account.account.type</field>
<field name="arch" type="xml">
<form string="Account Type">
<group>
<group>
<field name="name"/>
<field name="type"/>
</group>
<group>
<field name="include_initial_balance"/>
</group>
</group>
<separator string="Description"/>
<field name="note"/>
</form>
</field>
</record>
<record id="action_account_type_form" model="ir.actions.act_window">
<field name="name">Account Types</field>
<field name="res_model">account.account.type</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="view_account_type_search"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Define a new account type
</p><p>
An account type is used to determine how an account is used in
each journal. The deferral method of an account type determines
the process for the annual closing. Reports such as the Balance
Sheet and the Profit and Loss report use the category
(profit/loss or balance sheet).
</p>
</field>
</record>
<!-- Tax -->
<record id="view_tax_tree" model="ir.ui.view">
<field name="name">account.tax.tree</field>
<field name="model">account.tax</field>
<field name="arch" type="xml">
<tree string="Account Tax" decoration-muted="not active">
<field name="sequence" widget="handle"/>
<field name="name"/>
<field name="type_tax_use"/>