odoo-addon-account-financial-report 17.0.1.4.0.1__py3-none-any.whl → 17.0.1.6.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of odoo-addon-account-financial-report might be problematic. Click here for more details.
- odoo/addons/account_financial_report/README.rst +57 -57
- odoo/addons/account_financial_report/__manifest__.py +1 -1
- odoo/addons/account_financial_report/i18n/account_financial_report.pot +27 -0
- odoo/addons/account_financial_report/report/general_ledger.py +56 -0
- odoo/addons/account_financial_report/report/general_ledger_xlsx.py +3 -2
- odoo/addons/account_financial_report/report/templates/general_ledger.xml +20 -20
- odoo/addons/account_financial_report/report/templates/trial_balance.xml +181 -73
- odoo/addons/account_financial_report/report/trial_balance.py +190 -3
- odoo/addons/account_financial_report/report/trial_balance_xlsx.py +34 -14
- odoo/addons/account_financial_report/static/description/index.html +1 -1
- odoo/addons/account_financial_report/wizard/trial_balance_wizard.py +11 -0
- odoo/addons/account_financial_report/wizard/trial_balance_wizard_view.xml +15 -2
- {odoo_addon_account_financial_report-17.0.1.4.0.1.dist-info → odoo_addon_account_financial_report-17.0.1.6.0.dist-info}/METADATA +58 -58
- {odoo_addon_account_financial_report-17.0.1.4.0.1.dist-info → odoo_addon_account_financial_report-17.0.1.6.0.dist-info}/RECORD +16 -16
- {odoo_addon_account_financial_report-17.0.1.4.0.1.dist-info → odoo_addon_account_financial_report-17.0.1.6.0.dist-info}/WHEEL +0 -0
- {odoo_addon_account_financial_report-17.0.1.4.0.1.dist-info → odoo_addon_account_financial_report-17.0.1.6.0.dist-info}/top_level.txt +0 -0
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<div class="row">
|
|
29
29
|
<h4
|
|
30
30
|
class="mt0"
|
|
31
|
-
t-
|
|
31
|
+
t-out="title or 'Odoo Report'"
|
|
32
32
|
style="text-align: center;"
|
|
33
33
|
/>
|
|
34
34
|
</div>
|
|
@@ -36,43 +36,94 @@
|
|
|
36
36
|
<t t-call="account_financial_report.report_trial_balance_filters" />
|
|
37
37
|
<div class="act_as_table list_table" style="margin-top: 10px;" />
|
|
38
38
|
<!-- Display account lines -->
|
|
39
|
+
<t t-set="aml_domain_extra" t-value="[]" />
|
|
39
40
|
<t t-if="not show_partner_details">
|
|
40
|
-
<
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
>
|
|
41
|
+
<t t-if="trial_balance_grouped">
|
|
42
|
+
<t t-foreach="trial_balance_grouped" t-as="grouped_item">
|
|
43
|
+
<div class="act_as_table data_table" style="width: 100%;">
|
|
44
|
+
<div class="act_as_thead">
|
|
45
|
+
<div class="act_as_row labels">
|
|
46
|
+
<div class="act_as_cell" style="width: 100%;">
|
|
47
|
+
<t t-esc="grouped_item['name']" />
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
<t
|
|
53
|
+
t-set="aml_domain_extra"
|
|
54
|
+
t-if="grouped_item['id'] > 0"
|
|
55
|
+
t-value="[('analytic_account_id', '=', grouped_item['id'])]"
|
|
56
|
+
/>
|
|
57
|
+
<t
|
|
58
|
+
t-set="aml_domain_extra"
|
|
59
|
+
t-else=""
|
|
60
|
+
t-value="[('analytic_account_id', '=', False)]"
|
|
61
|
+
/>
|
|
62
|
+
<div class="act_as_table data_table" style="width: 100%;">
|
|
63
|
+
<t
|
|
64
|
+
t-call="account_financial_report.report_trial_balance_lines_header"
|
|
65
|
+
/>
|
|
66
|
+
<!-- Display each lines -->
|
|
67
|
+
<t t-foreach="grouped_item['account_data']" t-as="balance">
|
|
68
|
+
<!-- Adapt -->
|
|
69
|
+
<t t-set="style" t-value="'font-size:12px;'" />
|
|
54
70
|
<t
|
|
55
|
-
t-
|
|
56
|
-
t-value="style + 'font-weight: bold; color: blue;'"
|
|
71
|
+
t-call="account_financial_report.report_trial_balance_line"
|
|
57
72
|
/>
|
|
58
73
|
</t>
|
|
59
|
-
</
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
74
|
+
</div>
|
|
75
|
+
<!-- Display footer with totals !-->
|
|
76
|
+
<t t-set="balance" t-value="grouped_item" />
|
|
77
|
+
<t
|
|
78
|
+
t-call="account_financial_report.report_trial_balance_account_footer"
|
|
79
|
+
/>
|
|
80
|
+
</t>
|
|
81
|
+
<!-- TOTAL !-->
|
|
82
|
+
<t t-if="grouped_by">
|
|
83
|
+
<t t-set="balance" t-value="total_amount_grouped" />
|
|
84
|
+
<t
|
|
85
|
+
t-call="account_financial_report.report_trial_balance_account_footer"
|
|
86
|
+
/>
|
|
87
|
+
</t>
|
|
88
|
+
</t>
|
|
89
|
+
<t t-else="">
|
|
90
|
+
<div class="act_as_table data_table" style="width: 100%;">
|
|
91
|
+
<!-- Display account header -->
|
|
92
|
+
<t
|
|
93
|
+
t-call="account_financial_report.report_trial_balance_lines_header"
|
|
94
|
+
/>
|
|
95
|
+
<!-- Display each lines -->
|
|
96
|
+
<t t-foreach="trial_balance" t-as="balance">
|
|
97
|
+
<!-- Adapt -->
|
|
98
|
+
<t t-set="style" t-value="'font-size:12px;'" />
|
|
99
|
+
<!-- Different style for account group -->
|
|
100
|
+
<t t-if="show_hierarchy">
|
|
101
|
+
<t
|
|
102
|
+
t-if="balance['type'] == 'group_type'"
|
|
103
|
+
>
|
|
104
|
+
<t
|
|
105
|
+
t-set="style"
|
|
106
|
+
t-value="style + 'font-weight: bold; color: blue;'"
|
|
107
|
+
/>
|
|
108
|
+
</t>
|
|
109
|
+
</t>
|
|
110
|
+
<t t-if="show_hierarchy and limit_hierarchy_level">
|
|
111
|
+
<t
|
|
112
|
+
t-if="show_hierarchy_level > balance['level'] and (not hide_parent_hierarchy_level or (show_hierarchy_level - 1) == balance['level'])"
|
|
113
|
+
>
|
|
114
|
+
<t
|
|
115
|
+
t-call="account_financial_report.report_trial_balance_line"
|
|
116
|
+
/>
|
|
117
|
+
</t>
|
|
118
|
+
</t>
|
|
119
|
+
<t t-else="">
|
|
64
120
|
<t
|
|
65
121
|
t-call="account_financial_report.report_trial_balance_line"
|
|
66
122
|
/>
|
|
67
123
|
</t>
|
|
68
124
|
</t>
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
t-call="account_financial_report.report_trial_balance_line"
|
|
72
|
-
/>
|
|
73
|
-
</t>
|
|
74
|
-
</t>
|
|
75
|
-
</div>
|
|
125
|
+
</div>
|
|
126
|
+
</t>
|
|
76
127
|
</t>
|
|
77
128
|
<!-- Display partner lines -->
|
|
78
129
|
<t t-if="show_partner_details">
|
|
@@ -139,9 +190,9 @@
|
|
|
139
190
|
<div class="act_as_row">
|
|
140
191
|
<div class="act_as_cell">
|
|
141
192
|
From:
|
|
142
|
-
<span t-
|
|
193
|
+
<span t-out="date_from" t-options="{'widget': 'date'}" />
|
|
143
194
|
To
|
|
144
|
-
<span t-
|
|
195
|
+
<span t-out="date_to" t-options="{'widget': 'date'}" />
|
|
145
196
|
</div>
|
|
146
197
|
<div class="act_as_cell">
|
|
147
198
|
<t t-if="only_posted_moves">All posted entries</t>
|
|
@@ -154,7 +205,7 @@
|
|
|
154
205
|
<div class="act_as_cell">
|
|
155
206
|
<t t-if="limit_hierarchy_level">
|
|
156
207
|
Level
|
|
157
|
-
<span t-
|
|
208
|
+
<span t-out="show_hierarchy_level" />
|
|
158
209
|
</t>
|
|
159
210
|
<t t-if="not limit_hierarchy_level">No limit</t>
|
|
160
211
|
</div>
|
|
@@ -220,7 +271,7 @@
|
|
|
220
271
|
res-model="account.account"
|
|
221
272
|
view-type="form"
|
|
222
273
|
>
|
|
223
|
-
<t t-
|
|
274
|
+
<t t-out="balance['code']" />
|
|
224
275
|
</span>
|
|
225
276
|
</div>
|
|
226
277
|
<!-- ## Account/Partner-->
|
|
@@ -230,7 +281,7 @@
|
|
|
230
281
|
res-model="account.account"
|
|
231
282
|
view-type="form"
|
|
232
283
|
>
|
|
233
|
-
<t t-
|
|
284
|
+
<t t-out="balance['name']" />
|
|
234
285
|
</span>
|
|
235
286
|
</div>
|
|
236
287
|
</t>
|
|
@@ -252,7 +303,7 @@
|
|
|
252
303
|
res-model="account.group"
|
|
253
304
|
view-type="form"
|
|
254
305
|
>
|
|
255
|
-
<t t-
|
|
306
|
+
<t t-out="balance['name']" />
|
|
256
307
|
</span>
|
|
257
308
|
</div>
|
|
258
309
|
</t>
|
|
@@ -265,7 +316,7 @@
|
|
|
265
316
|
res-model="res.partner"
|
|
266
317
|
view-type="form"
|
|
267
318
|
>
|
|
268
|
-
<t t-
|
|
319
|
+
<t t-out="partners_data[partner_id]['name']" />
|
|
269
320
|
</span>
|
|
270
321
|
</div>
|
|
271
322
|
</t>
|
|
@@ -279,11 +330,11 @@
|
|
|
279
330
|
('date', '<', date_from)]"
|
|
280
331
|
/>
|
|
281
332
|
<span
|
|
282
|
-
t-att-domain="domain+aml_domain_common"
|
|
333
|
+
t-att-domain="domain+aml_domain_common+aml_domain_extra"
|
|
283
334
|
res-model="account.move.line"
|
|
284
335
|
>
|
|
285
336
|
<t
|
|
286
|
-
t-
|
|
337
|
+
t-out="balance['initial_balance']"
|
|
287
338
|
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
|
|
288
339
|
/>
|
|
289
340
|
</span>
|
|
@@ -335,11 +386,11 @@
|
|
|
335
386
|
('debit', '<>', 0)]"
|
|
336
387
|
/>
|
|
337
388
|
<span
|
|
338
|
-
t-att-domain="domain+aml_domain_common"
|
|
389
|
+
t-att-domain="domain+aml_domain_common+aml_domain_extra"
|
|
339
390
|
res-model="account.move.line"
|
|
340
391
|
>
|
|
341
392
|
<t
|
|
342
|
-
t-
|
|
393
|
+
t-out="balance['debit']"
|
|
343
394
|
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
|
|
344
395
|
/>
|
|
345
396
|
</span>
|
|
@@ -395,11 +446,11 @@
|
|
|
395
446
|
('credit', '<>', 0)]"
|
|
396
447
|
/>
|
|
397
448
|
<span
|
|
398
|
-
t-att-domain="domain+aml_domain_common"
|
|
449
|
+
t-att-domain="domain+aml_domain_common+aml_domain_extra"
|
|
399
450
|
res-model="account.move.line"
|
|
400
451
|
>
|
|
401
452
|
<t
|
|
402
|
-
t-
|
|
453
|
+
t-out="balance['credit']"
|
|
403
454
|
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
|
|
404
455
|
/>
|
|
405
456
|
</span>
|
|
@@ -455,11 +506,11 @@
|
|
|
455
506
|
('balance', '<>', 0)]"
|
|
456
507
|
/>
|
|
457
508
|
<span
|
|
458
|
-
t-att-domain="domain+aml_domain_common"
|
|
509
|
+
t-att-domain="domain+aml_domain_common+aml_domain_extra"
|
|
459
510
|
res-model="account.move.line"
|
|
460
511
|
>
|
|
461
512
|
<t
|
|
462
|
-
t-
|
|
513
|
+
t-out="balance['balance']"
|
|
463
514
|
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
|
|
464
515
|
/>
|
|
465
516
|
</span>
|
|
@@ -512,11 +563,11 @@
|
|
|
512
563
|
('date', '<=', date_to)]"
|
|
513
564
|
/>
|
|
514
565
|
<span
|
|
515
|
-
t-att-domain="domain+aml_domain_common"
|
|
566
|
+
t-att-domain="domain+aml_domain_common+aml_domain_extra"
|
|
516
567
|
res-model="account.move.line"
|
|
517
568
|
>
|
|
518
569
|
<t
|
|
519
|
-
t-
|
|
570
|
+
t-out="balance['ending_balance']"
|
|
520
571
|
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
|
|
521
572
|
/>
|
|
522
573
|
</span>
|
|
@@ -549,7 +600,7 @@
|
|
|
549
600
|
res-model="account.move.line"
|
|
550
601
|
>
|
|
551
602
|
<t
|
|
552
|
-
t-
|
|
603
|
+
t-out="total_amount[account_id][partner_id]['ending_balance']"
|
|
553
604
|
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
|
|
554
605
|
/>
|
|
555
606
|
</span>
|
|
@@ -570,11 +621,11 @@
|
|
|
570
621
|
t-value="[('account_id', '=', balance['id'])]"
|
|
571
622
|
/>
|
|
572
623
|
<span
|
|
573
|
-
t-att-domain="domain+aml_domain_common"
|
|
624
|
+
t-att-domain="domain+aml_domain_common+aml_domain_extra"
|
|
574
625
|
res-model="account.move.line"
|
|
575
626
|
>
|
|
576
627
|
<t
|
|
577
|
-
t-
|
|
628
|
+
t-out="balance['initial_currency_balance']"
|
|
578
629
|
t-options="{'widget': 'monetary', 'display_currency': balance_currency}"
|
|
579
630
|
/>
|
|
580
631
|
</span>
|
|
@@ -629,7 +680,7 @@
|
|
|
629
680
|
t-value="[('account_id', '=', balance['id'])]"
|
|
630
681
|
/>
|
|
631
682
|
<span
|
|
632
|
-
t-att-domain="domain+aml_domain_common"
|
|
683
|
+
t-att-domain="domain+aml_domain_common+aml_domain_extra"
|
|
633
684
|
res-model="account.move.line"
|
|
634
685
|
>
|
|
635
686
|
<t
|
|
@@ -835,44 +886,101 @@
|
|
|
835
886
|
<div class="act_as_row labels" style="font-weight: bold;">
|
|
836
887
|
<!--## date-->
|
|
837
888
|
<div class="act_as_cell first_column" style="width: 33%;">
|
|
838
|
-
<
|
|
839
|
-
|
|
840
|
-
|
|
889
|
+
<t
|
|
890
|
+
t-if="grouped_by and balance['type'] in ('analytic_account_type', 'total')"
|
|
891
|
+
>
|
|
892
|
+
<span t-out="balance['name']" />
|
|
893
|
+
</t>
|
|
894
|
+
<t t-else="">
|
|
895
|
+
<span t-out="accounts_data[account_id]['code']" />
|
|
896
|
+
-
|
|
897
|
+
<span t-out="accounts_data[account_id]['name']" />
|
|
898
|
+
</t>
|
|
841
899
|
</div>
|
|
842
900
|
<!--## Initial Balance-->
|
|
843
901
|
<div class="act_as_cell amount" style="width: 9%;">
|
|
844
|
-
<
|
|
845
|
-
t-
|
|
846
|
-
|
|
847
|
-
|
|
902
|
+
<t
|
|
903
|
+
t-if="grouped_by and balance['type'] in ('analytic_account_type', 'total')"
|
|
904
|
+
>
|
|
905
|
+
<span
|
|
906
|
+
t-out="balance['initial_balance']"
|
|
907
|
+
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
|
|
908
|
+
/>
|
|
909
|
+
</t>
|
|
910
|
+
<t t-else="">
|
|
911
|
+
<span
|
|
912
|
+
t-out="total_amount[account_id]['initial_balance']"
|
|
913
|
+
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
|
|
914
|
+
/>
|
|
915
|
+
</t>
|
|
848
916
|
</div>
|
|
849
917
|
<!--## Debit-->
|
|
850
918
|
<div class="act_as_cell amount" style="width: 9%;">
|
|
851
|
-
<
|
|
852
|
-
t-
|
|
853
|
-
|
|
854
|
-
|
|
919
|
+
<t
|
|
920
|
+
t-if="grouped_by and balance['type'] in ('analytic_account_type', 'total')"
|
|
921
|
+
>
|
|
922
|
+
<span
|
|
923
|
+
t-out="balance['debit']"
|
|
924
|
+
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
|
|
925
|
+
/>
|
|
926
|
+
</t>
|
|
927
|
+
<t t-else="">
|
|
928
|
+
<span
|
|
929
|
+
t-out="total_amount[account_id]['debit']"
|
|
930
|
+
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
|
|
931
|
+
/>
|
|
932
|
+
</t>
|
|
855
933
|
</div>
|
|
856
934
|
<!--## Credit-->
|
|
857
935
|
<div class="act_as_cell amount" style="width: 9%;">
|
|
858
|
-
<
|
|
859
|
-
t-
|
|
860
|
-
|
|
861
|
-
|
|
936
|
+
<t
|
|
937
|
+
t-if="grouped_by and balance['type'] in ('analytic_account_type', 'total')"
|
|
938
|
+
>
|
|
939
|
+
<span
|
|
940
|
+
t-out="balance['credit']"
|
|
941
|
+
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
|
|
942
|
+
/>
|
|
943
|
+
</t>
|
|
944
|
+
<t t-else="">
|
|
945
|
+
<span
|
|
946
|
+
t-out="total_amount[account_id]['credit']"
|
|
947
|
+
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
|
|
948
|
+
/>
|
|
949
|
+
</t>
|
|
862
950
|
</div>
|
|
863
951
|
<!--## Period balance-->
|
|
864
952
|
<div class="act_as_cell amount" style="width: 9%;">
|
|
865
|
-
<
|
|
866
|
-
t-
|
|
867
|
-
|
|
868
|
-
|
|
953
|
+
<t
|
|
954
|
+
t-if="grouped_by and balance['type'] in ('analytic_account_type', 'total')"
|
|
955
|
+
>
|
|
956
|
+
<span
|
|
957
|
+
t-out="balance['balance']"
|
|
958
|
+
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
|
|
959
|
+
/>
|
|
960
|
+
</t>
|
|
961
|
+
<t t-else="">
|
|
962
|
+
<span
|
|
963
|
+
t-out="total_amount[account_id]['balance']"
|
|
964
|
+
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
|
|
965
|
+
/>
|
|
966
|
+
</t>
|
|
869
967
|
</div>
|
|
870
968
|
<!--## Ending balance-->
|
|
871
969
|
<div class="act_as_cell amount" style="width: 9%;">
|
|
872
|
-
<
|
|
873
|
-
t-
|
|
874
|
-
|
|
875
|
-
|
|
970
|
+
<t
|
|
971
|
+
t-if="grouped_by and balance['type'] in ('analytic_account_type', 'total')"
|
|
972
|
+
>
|
|
973
|
+
<span
|
|
974
|
+
t-out="balance['ending_balance']"
|
|
975
|
+
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
|
|
976
|
+
/>
|
|
977
|
+
</t>
|
|
978
|
+
<t t-else="">
|
|
979
|
+
<span
|
|
980
|
+
t-out="total_amount[account_id]['ending_balance']"
|
|
981
|
+
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
|
|
982
|
+
/>
|
|
983
|
+
</t>
|
|
876
984
|
</div>
|
|
877
985
|
<t t-if="foreign_currency">
|
|
878
986
|
<!--## amount_total_due_currency-->
|