odoo-addon-account-financial-report 17.0.1.5.0__py3-none-any.whl → 17.0.1.6.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 (33) 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 +27 -0
  4. odoo/addons/account_financial_report/i18n/ar.po +28 -0
  5. odoo/addons/account_financial_report/i18n/ca.po +28 -0
  6. odoo/addons/account_financial_report/i18n/de.po +28 -0
  7. odoo/addons/account_financial_report/i18n/es.po +28 -0
  8. odoo/addons/account_financial_report/i18n/es_AR.po +28 -0
  9. odoo/addons/account_financial_report/i18n/es_MX.po +28 -0
  10. odoo/addons/account_financial_report/i18n/fr.po +28 -0
  11. odoo/addons/account_financial_report/i18n/fr_CH.po +28 -0
  12. odoo/addons/account_financial_report/i18n/fr_FR.po +28 -0
  13. odoo/addons/account_financial_report/i18n/hr.po +28 -0
  14. odoo/addons/account_financial_report/i18n/hr_HR.po +28 -0
  15. odoo/addons/account_financial_report/i18n/it.po +28 -0
  16. odoo/addons/account_financial_report/i18n/ja.po +28 -0
  17. odoo/addons/account_financial_report/i18n/nl.po +28 -0
  18. odoo/addons/account_financial_report/i18n/nl_NL.po +28 -0
  19. odoo/addons/account_financial_report/i18n/pt.po +28 -0
  20. odoo/addons/account_financial_report/i18n/pt_BR.po +28 -0
  21. odoo/addons/account_financial_report/i18n/ro.po +28 -0
  22. odoo/addons/account_financial_report/i18n/sv.po +28 -0
  23. odoo/addons/account_financial_report/i18n/tr.po +28 -0
  24. odoo/addons/account_financial_report/report/templates/trial_balance.xml +181 -73
  25. odoo/addons/account_financial_report/report/trial_balance.py +190 -3
  26. odoo/addons/account_financial_report/report/trial_balance_xlsx.py +34 -14
  27. odoo/addons/account_financial_report/static/description/index.html +1 -1
  28. odoo/addons/account_financial_report/wizard/trial_balance_wizard.py +11 -0
  29. odoo/addons/account_financial_report/wizard/trial_balance_wizard_view.xml +15 -2
  30. {odoo_addon_account_financial_report-17.0.1.5.0.dist-info → odoo_addon_account_financial_report-17.0.1.6.0.1.dist-info}/METADATA +2 -2
  31. {odoo_addon_account_financial_report-17.0.1.5.0.dist-info → odoo_addon_account_financial_report-17.0.1.6.0.1.dist-info}/RECORD +33 -33
  32. {odoo_addon_account_financial_report-17.0.1.5.0.dist-info → odoo_addon_account_financial_report-17.0.1.6.0.1.dist-info}/WHEEL +0 -0
  33. {odoo_addon_account_financial_report-17.0.1.5.0.dist-info → odoo_addon_account_financial_report-17.0.1.6.0.1.dist-info}/top_level.txt +0 -0
@@ -56,6 +56,14 @@ msgstr "91 - 120 d."
56
56
  msgid "<b>Taxes summary</b>"
57
57
  msgstr "<b>Rezumat taxe</b>"
58
58
 
59
+ #. module: account_financial_report
60
+ #: model_terms:ir.ui.view,arch_db:account_financial_report.trial_balance_wizard
61
+ msgid ""
62
+ "<i class=\"fa fa-exclamation-triangle mr-3\"/>\n"
63
+ " Duplicate amounts may be shown because more than one "
64
+ "analytical account may be defined in the journal items."
65
+ msgstr ""
66
+
59
67
  #. module: account_financial_report
60
68
  #: model_terms:ir.ui.view,arch_db:account_financial_report.res_config_settings_view_form
61
69
  msgid "<span class=\"o_form_label\">Intervals configuration</span>"
@@ -340,6 +348,7 @@ msgstr ""
340
348
 
341
349
  #. module: account_financial_report
342
350
  #: model:ir.model.fields,field_description:account_financial_report.field_account_move_line__analytic_account_ids
351
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__trial_balance_report_wizard__grouped_by__analytic_account
343
352
  msgid "Analytic Account"
344
353
  msgstr "Cont analitic"
345
354
 
@@ -950,6 +959,7 @@ msgstr "Intr??ri de grup dup??"
950
959
 
951
960
  #. module: account_financial_report
952
961
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__grouped_by
962
+ #: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard__grouped_by
953
963
  msgid "Grouped By"
954
964
  msgstr ""
955
965
 
@@ -1586,6 +1596,14 @@ msgstr "Dat?? start"
1586
1596
  msgid "Starting account in a range"
1587
1597
  msgstr "Contul de pornire ??ntr-un interval"
1588
1598
 
1599
+ #. module: account_financial_report
1600
+ #. odoo-python
1601
+ #: code:addons/account_financial_report/report/trial_balance.py:0
1602
+ #: code:addons/account_financial_report/report/trial_balance_xlsx.py:0
1603
+ #, python-format
1604
+ msgid "TOTAL"
1605
+ msgstr ""
1606
+
1589
1607
  #. module: account_financial_report
1590
1608
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_general_ledger_lines
1591
1609
  msgid "Tags"
@@ -1748,7 +1766,10 @@ msgid "To:"
1748
1766
  msgstr "La:"
1749
1767
 
1750
1768
  #. module: account_financial_report
1769
+ #. odoo-python
1770
+ #: code:addons/account_financial_report/report/trial_balance_xlsx.py:0
1751
1771
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_account_ending_cumul
1772
+ #, python-format
1752
1773
  msgid "Total"
1753
1774
  msgstr "Total"
1754
1775
 
@@ -1891,6 +1912,13 @@ msgstr ""
1891
1912
  msgid "With Account Name"
1892
1913
  msgstr "Cu numele contului"
1893
1914
 
1915
+ #. module: account_financial_report
1916
+ #. odoo-python
1917
+ #: code:addons/account_financial_report/report/trial_balance.py:0
1918
+ #, python-format
1919
+ msgid "Without analytic account"
1920
+ msgstr ""
1921
+
1894
1922
  #. module: account_financial_report
1895
1923
  #. odoo-python
1896
1924
  #: code:addons/account_financial_report/report/general_ledger_xlsx.py:0
@@ -52,6 +52,14 @@ msgstr "91 - 120 d."
52
52
  msgid "<b>Taxes summary</b>"
53
53
  msgstr "<b>Skatter sammanfattning</b>"
54
54
 
55
+ #. module: account_financial_report
56
+ #: model_terms:ir.ui.view,arch_db:account_financial_report.trial_balance_wizard
57
+ msgid ""
58
+ "<i class=\"fa fa-exclamation-triangle mr-3\"/>\n"
59
+ " Duplicate amounts may be shown because more than one "
60
+ "analytical account may be defined in the journal items."
61
+ msgstr ""
62
+
55
63
  #. module: account_financial_report
56
64
  #: model_terms:ir.ui.view,arch_db:account_financial_report.res_config_settings_view_form
57
65
  msgid "<span class=\"o_form_label\">Intervals configuration</span>"
@@ -343,6 +351,7 @@ msgstr "Belopp val."
343
351
 
344
352
  #. module: account_financial_report
345
353
  #: model:ir.model.fields,field_description:account_financial_report.field_account_move_line__analytic_account_ids
354
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__trial_balance_report_wizard__grouped_by__analytic_account
346
355
  msgid "Analytic Account"
347
356
  msgstr "Objekt konto"
348
357
 
@@ -958,6 +967,7 @@ msgstr "Gruppinlägg efter"
958
967
 
959
968
  #. module: account_financial_report
960
969
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__grouped_by
970
+ #: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard__grouped_by
961
971
  msgid "Grouped By"
962
972
  msgstr "Grupperad efter"
963
973
 
@@ -1601,6 +1611,14 @@ msgstr "Startdatum"
1601
1611
  msgid "Starting account in a range"
1602
1612
  msgstr "Påbörjar ett konto inom ett intervall"
1603
1613
 
1614
+ #. module: account_financial_report
1615
+ #. odoo-python
1616
+ #: code:addons/account_financial_report/report/trial_balance.py:0
1617
+ #: code:addons/account_financial_report/report/trial_balance_xlsx.py:0
1618
+ #, python-format
1619
+ msgid "TOTAL"
1620
+ msgstr ""
1621
+
1604
1622
  #. module: account_financial_report
1605
1623
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_general_ledger_lines
1606
1624
  msgid "Tags"
@@ -1768,7 +1786,10 @@ msgid "To:"
1768
1786
  msgstr "Till:"
1769
1787
 
1770
1788
  #. module: account_financial_report
1789
+ #. odoo-python
1790
+ #: code:addons/account_financial_report/report/trial_balance_xlsx.py:0
1771
1791
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_account_ending_cumul
1792
+ #, python-format
1772
1793
  msgid "Total"
1773
1794
  msgstr "Total"
1774
1795
 
@@ -1909,6 +1930,13 @@ msgstr ""
1909
1930
  msgid "With Account Name"
1910
1931
  msgstr "Med kontonamn"
1911
1932
 
1933
+ #. module: account_financial_report
1934
+ #. odoo-python
1935
+ #: code:addons/account_financial_report/report/trial_balance.py:0
1936
+ #, python-format
1937
+ msgid "Without analytic account"
1938
+ msgstr ""
1939
+
1912
1940
  #. module: account_financial_report
1913
1941
  #. odoo-python
1914
1942
  #: code:addons/account_financial_report/report/general_ledger_xlsx.py:0
@@ -52,6 +52,14 @@ msgstr ""
52
52
  msgid "<b>Taxes summary</b>"
53
53
  msgstr "<b>Vergi Özeti</b>"
54
54
 
55
+ #. module: account_financial_report
56
+ #: model_terms:ir.ui.view,arch_db:account_financial_report.trial_balance_wizard
57
+ msgid ""
58
+ "<i class=\"fa fa-exclamation-triangle mr-3\"/>\n"
59
+ " Duplicate amounts may be shown because more than one "
60
+ "analytical account may be defined in the journal items."
61
+ msgstr ""
62
+
55
63
  #. module: account_financial_report
56
64
  #: model_terms:ir.ui.view,arch_db:account_financial_report.res_config_settings_view_form
57
65
  msgid "<span class=\"o_form_label\">Intervals configuration</span>"
@@ -335,6 +343,7 @@ msgstr ""
335
343
 
336
344
  #. module: account_financial_report
337
345
  #: model:ir.model.fields,field_description:account_financial_report.field_account_move_line__analytic_account_ids
346
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__trial_balance_report_wizard__grouped_by__analytic_account
338
347
  msgid "Analytic Account"
339
348
  msgstr "Analitik Hesap"
340
349
 
@@ -949,6 +958,7 @@ msgstr ""
949
958
 
950
959
  #. module: account_financial_report
951
960
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__grouped_by
961
+ #: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard__grouped_by
952
962
  msgid "Grouped By"
953
963
  msgstr "Gruplanma"
954
964
 
@@ -1585,6 +1595,14 @@ msgstr "Başlama Tarihi"
1585
1595
  msgid "Starting account in a range"
1586
1596
  msgstr ""
1587
1597
 
1598
+ #. module: account_financial_report
1599
+ #. odoo-python
1600
+ #: code:addons/account_financial_report/report/trial_balance.py:0
1601
+ #: code:addons/account_financial_report/report/trial_balance_xlsx.py:0
1602
+ #, python-format
1603
+ msgid "TOTAL"
1604
+ msgstr ""
1605
+
1588
1606
  #. module: account_financial_report
1589
1607
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_general_ledger_lines
1590
1608
  msgid "Tags"
@@ -1745,7 +1763,10 @@ msgid "To:"
1745
1763
  msgstr ""
1746
1764
 
1747
1765
  #. module: account_financial_report
1766
+ #. odoo-python
1767
+ #: code:addons/account_financial_report/report/trial_balance_xlsx.py:0
1748
1768
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_account_ending_cumul
1769
+ #, python-format
1749
1770
  msgid "Total"
1750
1771
  msgstr "Toplam"
1751
1772
 
@@ -1881,6 +1902,13 @@ msgstr ""
1881
1902
  msgid "With Account Name"
1882
1903
  msgstr "Hesap Adıyla"
1883
1904
 
1905
+ #. module: account_financial_report
1906
+ #. odoo-python
1907
+ #: code:addons/account_financial_report/report/trial_balance.py:0
1908
+ #, python-format
1909
+ msgid "Without analytic account"
1910
+ msgstr ""
1911
+
1884
1912
  #. module: account_financial_report
1885
1913
  #. odoo-python
1886
1914
  #: code:addons/account_financial_report/report/general_ledger_xlsx.py:0
@@ -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">
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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-esc="balance['initial_currency_balance']"
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
- <span t-esc="accounts_data[account_id]['code']" />
839
- -
840
- <span t-esc="accounts_data[account_id]['name']" />
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
- <span
845
- t-esc="total_amount[account_id]['initial_balance']"
846
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
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
- <span
852
- t-esc="total_amount[account_id]['debit']"
853
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
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
- <span
859
- t-esc="total_amount[account_id]['credit']"
860
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
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
- <span
866
- t-esc="total_amount[account_id]['balance']"
867
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
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
- <span
873
- t-esc="total_amount[account_id]['ending_balance']"
874
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
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-->