odoo-addon-account-financial-report 15.0.2.13.0__py3-none-any.whl → 15.0.3.0.0.1__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.

Files changed (32) hide show
  1. odoo/addons/account_financial_report/README.rst +1 -1
  2. odoo/addons/account_financial_report/__manifest__.py +1 -1
  3. odoo/addons/account_financial_report/i18n/account_financial_report.pot +17 -0
  4. odoo/addons/account_financial_report/i18n/ar.po +17 -0
  5. odoo/addons/account_financial_report/i18n/ca.po +17 -0
  6. odoo/addons/account_financial_report/i18n/da.po +17 -0
  7. odoo/addons/account_financial_report/i18n/de.po +17 -0
  8. odoo/addons/account_financial_report/i18n/es.po +17 -0
  9. odoo/addons/account_financial_report/i18n/es_AR.po +17 -0
  10. odoo/addons/account_financial_report/i18n/es_MX.po +17 -0
  11. odoo/addons/account_financial_report/i18n/fr.po +17 -0
  12. odoo/addons/account_financial_report/i18n/fr_CH.po +17 -0
  13. odoo/addons/account_financial_report/i18n/fr_FR.po +17 -0
  14. odoo/addons/account_financial_report/i18n/hr.po +17 -0
  15. odoo/addons/account_financial_report/i18n/hr_HR.po +17 -0
  16. odoo/addons/account_financial_report/i18n/it.po +17 -0
  17. odoo/addons/account_financial_report/i18n/ja.po +17 -0
  18. odoo/addons/account_financial_report/i18n/nl.po +17 -0
  19. odoo/addons/account_financial_report/i18n/nl_NL.po +17 -0
  20. odoo/addons/account_financial_report/i18n/pt.po +17 -0
  21. odoo/addons/account_financial_report/i18n/pt_BR.po +17 -0
  22. odoo/addons/account_financial_report/i18n/ro.po +17 -0
  23. odoo/addons/account_financial_report/report/templates/trial_balance.xml +208 -100
  24. odoo/addons/account_financial_report/report/trial_balance.py +182 -3
  25. odoo/addons/account_financial_report/report/trial_balance_xlsx.py +34 -14
  26. odoo/addons/account_financial_report/static/description/index.html +1 -1
  27. odoo/addons/account_financial_report/wizard/trial_balance_wizard.py +11 -0
  28. odoo/addons/account_financial_report/wizard/trial_balance_wizard_view.xml +9 -2
  29. {odoo_addon_account_financial_report-15.0.2.13.0.dist-info → odoo_addon_account_financial_report-15.0.3.0.0.1.dist-info}/METADATA +2 -2
  30. {odoo_addon_account_financial_report-15.0.2.13.0.dist-info → odoo_addon_account_financial_report-15.0.3.0.0.1.dist-info}/RECORD +32 -32
  31. {odoo_addon_account_financial_report-15.0.2.13.0.dist-info → odoo_addon_account_financial_report-15.0.3.0.0.1.dist-info}/WHEEL +0 -0
  32. {odoo_addon_account_financial_report-15.0.2.13.0.dist-info → odoo_addon_account_financial_report-15.0.3.0.0.1.dist-info}/top_level.txt +0 -0
@@ -18,9 +18,9 @@
18
18
  <!-- Defines global variables used by internal layout -->
19
19
  <t t-set="title">
20
20
  Trial Balance -
21
- <t t-raw="company_name" />
21
+ <t t-out="company_name" />
22
22
  -
23
- <t t-raw="currency_name" />
23
+ <t t-out="currency_name" />
24
24
  </t>
25
25
  <t t-set="company_name" t-value="Company_Name" />
26
26
  <!-- <t t-set="res_company" t-value="company_id"/>-->
@@ -28,7 +28,7 @@
28
28
  <div class="row">
29
29
  <h4
30
30
  class="mt0"
31
- t-esc="title or 'Odoo Report'"
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
- <div class="act_as_table data_table" style="width: 100%;">
41
- <!-- Display account header -->
42
- <t
43
- t-call="account_financial_report.report_trial_balance_lines_header"
44
- />
45
- <!-- Display each lines -->
46
- <t t-foreach="trial_balance" t-as="balance">
47
- <!-- Adapt -->
48
- <t t-set="style" t-value="'font-size:12px;'" />
49
- <!-- Different style for account group -->
50
- <t t-if="show_hierarchy">
51
- <t
52
- t-if="balance['type'] == 'group_type'"
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-set="style"
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
- </t>
60
- <t t-if="show_hierarchy and limit_hierarchy_level">
61
- <t
62
- t-if="show_hierarchy_level > balance['level'] and (not hide_parent_hierarchy_level or (show_hierarchy_level - 1) == balance['level'])"
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
- <t t-else="">
70
- <t
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">
@@ -92,8 +143,8 @@
92
143
  view-type="form"
93
144
  >
94
145
  <t
95
- t-raw="accounts_data[account_id]['code']"
96
- /> - <t t-raw="accounts_data[account_id]['name']" />
146
+ t-out="accounts_data[account_id]['code']"
147
+ /> - <t t-out="accounts_data[account_id]['name']" />
97
148
  </span>
98
149
  </div>
99
150
  <div class="act_as_table data_table" style="width: 100%;">
@@ -139,9 +190,9 @@
139
190
  <div class="act_as_row">
140
191
  <div class="act_as_cell">
141
192
  From:
142
- <span t-esc="date_from" t-options="{'widget': 'date'}" />
193
+ <span t-out="date_from" t-options="{'widget': 'date'}" />
143
194
  To
144
- <span t-esc="date_to" t-options="{'widget': 'date'}" />
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-esc="show_hierarchy_level" />
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-esc="balance['code']" />
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-esc="balance['name']" />
284
+ <t t-out="balance['name']" />
234
285
  </span>
235
286
  </div>
236
287
  </t>
@@ -242,7 +293,7 @@
242
293
  res-model="account.group"
243
294
  view-type="form"
244
295
  >
245
- <t t-raw="balance['code']" />
296
+ <t t-out="balance['code']" />
246
297
  </span>
247
298
  </div>
248
299
  <div class="act_as_cell left" t-att-style="style">
@@ -252,7 +303,7 @@
252
303
  res-model="account.group"
253
304
  view-type="form"
254
305
  >
255
- <t t-esc="balance['name']" />
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-esc="partners_data[partner_id]['name']" />
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', '&lt;', 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-esc="balance['initial_balance']"
337
+ t-out="balance['initial_balance']"
287
338
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
288
339
  />
289
340
  </span>
@@ -299,7 +350,7 @@
299
350
  res-model="account.move.line"
300
351
  >
301
352
  <t
302
- t-raw="balance['initial_balance']"
353
+ t-out="balance['initial_balance']"
303
354
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
304
355
  />
305
356
  </span>
@@ -317,7 +368,7 @@
317
368
  res-model="account.move.line"
318
369
  >
319
370
  <t
320
- t-raw="total_amount[account_id][partner_id]['initial_balance']"
371
+ t-out="total_amount[account_id][partner_id]['initial_balance']"
321
372
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
322
373
  />
323
374
  </span>
@@ -335,11 +386,11 @@
335
386
  ('debit', '&lt;&gt;', 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-esc="balance['debit']"
393
+ t-out="balance['debit']"
343
394
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
344
395
  />
345
396
  </span>
@@ -357,7 +408,7 @@
357
408
  res-model="account.move.line"
358
409
  >
359
410
  <t
360
- t-raw="balance['debit']"
411
+ t-out="balance['debit']"
361
412
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
362
413
  />
363
414
  </span>
@@ -377,7 +428,7 @@
377
428
  res-model="account.move.line"
378
429
  >
379
430
  <t
380
- t-raw="total_amount[account_id][partner_id]['debit']"
431
+ t-out="total_amount[account_id][partner_id]['debit']"
381
432
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
382
433
  />
383
434
  </span>
@@ -395,11 +446,11 @@
395
446
  ('credit', '&lt;&gt;', 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-esc="balance['credit']"
453
+ t-out="balance['credit']"
403
454
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
404
455
  />
405
456
  </span>
@@ -417,7 +468,7 @@
417
468
  res-model="account.move.line"
418
469
  >
419
470
  <t
420
- t-raw="balance['credit']"
471
+ t-out="balance['credit']"
421
472
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
422
473
  />
423
474
  </span>
@@ -437,7 +488,7 @@
437
488
  res-model="account.move.line"
438
489
  >
439
490
  <t
440
- t-raw="total_amount[account_id][partner_id]['credit']"
491
+ t-out="total_amount[account_id][partner_id]['credit']"
441
492
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
442
493
  />
443
494
  </span>
@@ -455,11 +506,11 @@
455
506
  ('balance', '&lt;&gt;', 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-esc="balance['balance']"
513
+ t-out="balance['balance']"
463
514
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
464
515
  />
465
516
  </span>
@@ -476,7 +527,7 @@
476
527
  res-model="account.move.line"
477
528
  >
478
529
  <t
479
- t-raw="balance['balance']"
530
+ t-out="balance['balance']"
480
531
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
481
532
  />
482
533
  </span>
@@ -496,7 +547,7 @@
496
547
  res-model="account.move.line"
497
548
  >
498
549
  <t
499
- t-raw="total_amount[account_id][partner_id]['balance']"
550
+ t-out="total_amount[account_id][partner_id]['balance']"
500
551
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
501
552
  />
502
553
  </span>
@@ -512,11 +563,11 @@
512
563
  ('date', '&lt;=', 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-esc="balance['ending_balance']"
570
+ t-out="balance['ending_balance']"
520
571
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
521
572
  />
522
573
  </span>
@@ -531,7 +582,7 @@
531
582
  res-model="account.move.line"
532
583
  >
533
584
  <t
534
- t-raw="balance['ending_balance']"
585
+ t-out="balance['ending_balance']"
535
586
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
536
587
  />
537
588
  </span>
@@ -549,7 +600,7 @@
549
600
  res-model="account.move.line"
550
601
  >
551
602
  <t
552
- t-esc="total_amount[account_id][partner_id]['ending_balance']"
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>
@@ -566,11 +617,11 @@
566
617
  t-value="[('account_id', '=', balance['id'])]"
567
618
  />
568
619
  <span
569
- t-att-domain="domain+aml_domain_common"
620
+ t-att-domain="domain+aml_domain_common+aml_domain_extra"
570
621
  res-model="account.move.line"
571
622
  >
572
623
  <t
573
- t-esc="balance['initial_currency_balance']"
624
+ t-out="balance['initial_currency_balance']"
574
625
  t-options="{'widget': 'monetary', 'display_currency': balance['currency_id']}"
575
626
  />
576
627
  </span>
@@ -582,7 +633,7 @@
582
633
  <!-- t-att-data-res-model="'account.move.line'"-->
583
634
  <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
584
635
  <!-- t-att-style="style">-->
585
- <!-- <t t-att-style="style" t-raw="line.initial_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"/></a>-->
636
+ <!-- <t t-att-style="style" t-out="line.initial_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"/></a>-->
586
637
  <!-- </span>-->
587
638
  <!-- </t>-->
588
639
  </div>
@@ -603,7 +654,7 @@
603
654
  res-model="account.move.line"
604
655
  >
605
656
  <t
606
- t-raw="total_amount[account_id][partner_id]['initial_currency_balance']"
657
+ t-out="total_amount[account_id][partner_id]['initial_currency_balance']"
607
658
  t-options="{'widget': 'monetary', 'display_currency': total_amount[account_id]['currency_id']}"
608
659
  />
609
660
  </span>
@@ -621,11 +672,11 @@
621
672
  t-value="[('account_id', '=', balance['id'])]"
622
673
  />
623
674
  <span
624
- t-att-domain="domain+aml_domain_common"
675
+ t-att-domain="domain+aml_domain_common+aml_domain_extra"
625
676
  res-model="account.move.line"
626
677
  >
627
678
  <t
628
- t-raw="balance['ending_currency_balance']"
679
+ t-out="balance['ending_currency_balance']"
629
680
  t-options="{'widget': 'monetary', 'display_currency': balance['currency_id']}"
630
681
  />
631
682
  </span>
@@ -637,7 +688,7 @@
637
688
  <!-- t-att-data-res-model="'account.move.line'"-->
638
689
  <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
639
690
  <!-- t-att-style="style">-->
640
- <!-- <t t-att-style="style" t-raw="line.final_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"/></a>-->
691
+ <!-- <t t-att-style="style" t-out="line.final_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"/></a>-->
641
692
  <!-- </span>-->
642
693
  <!-- </t>-->
643
694
  </div>
@@ -658,7 +709,7 @@
658
709
  res-model="account.move.line"
659
710
  >
660
711
  <t
661
- t-raw="total_amount[account_id][partner_id]['ending_currency_balance']"
712
+ t-out="total_amount[account_id][partner_id]['ending_currency_balance']"
662
713
  t-options="{'widget': 'monetary', 'display_currency': total_amount[account_id]['currency_id']}"
663
714
  />
664
715
  </span>
@@ -702,7 +753,7 @@
702
753
  <!-- t-att-data-res-model="res_model"-->
703
754
  <!-- class="o_account_financial_reports_web_action"-->
704
755
  <!-- t-att-style="style">-->
705
- <!-- <t t-att-style="style" t-raw="account.code"/> - <t t-att-style="style" t-raw="account.name"/></a>-->
756
+ <!-- <t t-att-style="style" t-out="account.code"/> - <t t-att-style="style" t-out="account.name"/></a>-->
706
757
  <!-- </span>-->
707
758
  <!-- </div>-->
708
759
  <!-- &lt;!&ndash;## Initial balance&ndash;&gt;-->
@@ -715,7 +766,7 @@
715
766
  <!-- t-att-data-res-model="'account.move.line'"-->
716
767
  <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
717
768
  <!-- t-att-style="style">-->
718
- <!-- <t t-att-style="style" t-raw="account.initial_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
769
+ <!-- <t t-att-style="style" t-out="account.initial_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
719
770
  <!-- </span>-->
720
771
  <!-- </div>-->
721
772
  <!-- &lt;!&ndash;## Debit&ndash;&gt;-->
@@ -730,7 +781,7 @@
730
781
  <!-- t-att-data-res-model="'account.move.line'"-->
731
782
  <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
732
783
  <!-- t-att-style="style">-->
733
- <!-- <t t-att-style="style" t-raw="account.debit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
784
+ <!-- <t t-att-style="style" t-out="account.debit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
734
785
  <!-- </span>-->
735
786
  <!-- </div>-->
736
787
  <!-- &lt;!&ndash;## Credit&ndash;&gt;-->
@@ -745,7 +796,7 @@
745
796
  <!-- t-att-data-res-model="'account.move.line'"-->
746
797
  <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
747
798
  <!-- t-att-style="style">-->
748
- <!-- <t t-att-style="style" t-raw="account.credit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
799
+ <!-- <t t-att-style="style" t-out="account.credit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
749
800
  <!-- </span>-->
750
801
  <!-- </div>-->
751
802
  <!-- &lt;!&ndash;## Period Balance &ndash;&gt;-->
@@ -760,7 +811,7 @@
760
811
  <!-- t-att-data-res-model="'account.move.line'"-->
761
812
  <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
762
813
  <!-- t-att-style="style">-->
763
- <!-- <t t-att-style="style" t-raw="account.period_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
814
+ <!-- <t t-att-style="style" t-out="account.period_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
764
815
  <!-- </span>-->
765
816
  <!-- </div>-->
766
817
  <!-- &lt;!&ndash;## Ending balance&ndash;&gt;-->
@@ -772,7 +823,7 @@
772
823
  <!-- t-att-data-res-model="'account.move.line'"-->
773
824
  <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
774
825
  <!-- t-att-style="style" >-->
775
- <!-- <t t-att-style="style" t-raw="account.final_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
826
+ <!-- <t t-att-style="style" t-out="account.final_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
776
827
  <!-- </span>-->
777
828
  <!-- </div>-->
778
829
  <!-- <t t-if="foreign_currency">-->
@@ -793,7 +844,7 @@
793
844
  <!-- t-att-data-res-model="'account.move.line'"-->
794
845
  <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
795
846
  <!-- t-att-style="style">-->
796
- <!-- <t t-att-style="style" t-raw="account.initial_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': account.account_id.currency_id}"/></a>-->
847
+ <!-- <t t-att-style="style" t-out="account.initial_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': account.account_id.currency_id}"/></a>-->
797
848
  <!-- </span>-->
798
849
  <!-- </div>-->
799
850
  <!-- <div class="act_as_cell amount" style="width: 8.86%;">-->
@@ -804,7 +855,7 @@
804
855
  <!-- t-att-data-res-model="'account.move.line'"-->
805
856
  <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
806
857
  <!-- t-att-style="style" >-->
807
- <!-- <t t-att-style="style" t-raw="account.final_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': account.account_id.currency_id}"/></a>-->
858
+ <!-- <t t-att-style="style" t-out="account.final_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': account.account_id.currency_id}"/></a>-->
808
859
  <!-- </span>-->
809
860
  <!-- </div>-->
810
861
  <!-- </t>-->
@@ -823,44 +874,101 @@
823
874
  <div class="act_as_row labels" style="font-weight: bold;">
824
875
  <!--## date-->
825
876
  <div class="act_as_cell first_column" style="width: 33%;">
826
- <span t-esc="accounts_data[account_id]['code']" />
827
- -
828
- <span t-esc="accounts_data[account_id]['name']" />
877
+ <t
878
+ t-if="grouped_by and balance['type'] in ('analytic_account_type', 'total')"
879
+ >
880
+ <span t-out="balance['name']" />
881
+ </t>
882
+ <t t-else="">
883
+ <span t-out="accounts_data[account_id]['code']" />
884
+ -
885
+ <span t-out="accounts_data[account_id]['name']" />
886
+ </t>
829
887
  </div>
830
888
  <!--## Initial Balance-->
831
889
  <div class="act_as_cell amount" style="width: 9%;">
832
- <span
833
- t-esc="total_amount[account_id]['initial_balance']"
834
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
835
- />
890
+ <t
891
+ t-if="grouped_by and balance['type'] in ('analytic_account_type', 'total')"
892
+ >
893
+ <span
894
+ t-out="balance['initial_balance']"
895
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
896
+ />
897
+ </t>
898
+ <t t-else="">
899
+ <span
900
+ t-out="total_amount[account_id]['initial_balance']"
901
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
902
+ />
903
+ </t>
836
904
  </div>
837
905
  <!--## Debit-->
838
906
  <div class="act_as_cell amount" style="width: 9%;">
839
- <span
840
- t-esc="total_amount[account_id]['debit']"
841
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
842
- />
907
+ <t
908
+ t-if="grouped_by and balance['type'] in ('analytic_account_type', 'total')"
909
+ >
910
+ <span
911
+ t-out="balance['debit']"
912
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
913
+ />
914
+ </t>
915
+ <t t-else="">
916
+ <span
917
+ t-out="total_amount[account_id]['debit']"
918
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
919
+ />
920
+ </t>
843
921
  </div>
844
922
  <!--## Credit-->
845
923
  <div class="act_as_cell amount" style="width: 9%;">
846
- <span
847
- t-esc="total_amount[account_id]['credit']"
848
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
849
- />
924
+ <t
925
+ t-if="grouped_by and balance['type'] in ('analytic_account_type', 'total')"
926
+ >
927
+ <span
928
+ t-out="balance['credit']"
929
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
930
+ />
931
+ </t>
932
+ <t t-else="">
933
+ <span
934
+ t-out="total_amount[account_id]['credit']"
935
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
936
+ />
937
+ </t>
850
938
  </div>
851
939
  <!--## Period balance-->
852
940
  <div class="act_as_cell amount" style="width: 9%;">
853
- <span
854
- t-esc="total_amount[account_id]['balance']"
855
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
856
- />
941
+ <t
942
+ t-if="grouped_by and balance['type'] in ('analytic_account_type', 'total')"
943
+ >
944
+ <span
945
+ t-out="balance['balance']"
946
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
947
+ />
948
+ </t>
949
+ <t t-else="">
950
+ <span
951
+ t-out="total_amount[account_id]['balance']"
952
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
953
+ />
954
+ </t>
857
955
  </div>
858
956
  <!--## Ending balance-->
859
957
  <div class="act_as_cell amount" style="width: 9%;">
860
- <span
861
- t-esc="total_amount[account_id]['ending_balance']"
862
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
863
- />
958
+ <t
959
+ t-if="grouped_by and balance['type'] in ('analytic_account_type', 'total')"
960
+ >
961
+ <span
962
+ t-out="balance['ending_balance']"
963
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
964
+ />
965
+ </t>
966
+ <t t-else="">
967
+ <span
968
+ t-out="total_amount[account_id]['ending_balance']"
969
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
970
+ />
971
+ </t>
864
972
  </div>
865
973
  <t t-if="foreign_currency">
866
974
  <!--## amount_total_due_currency-->