odoo-addon-account-financial-report 15.0.1.1.0.1__py3-none-any.whl → 18.0.1.4.4.3__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.
Files changed (104) hide show
  1. odoo/addons/account_financial_report/README.rst +131 -74
  2. odoo/addons/account_financial_report/__manifest__.py +6 -9
  3. odoo/addons/account_financial_report/i18n/account_financial_report.pot +313 -188
  4. odoo/addons/account_financial_report/i18n/ar.po +579 -433
  5. odoo/addons/account_financial_report/i18n/ca.po +474 -289
  6. odoo/addons/account_financial_report/i18n/{fr_FR.po → ca_AD.po} +539 -491
  7. odoo/addons/account_financial_report/i18n/ca_ES.po +1891 -0
  8. odoo/addons/account_financial_report/i18n/de.po +455 -295
  9. odoo/addons/account_financial_report/i18n/es.po +458 -394
  10. odoo/addons/account_financial_report/i18n/es_AR.po +464 -283
  11. odoo/addons/account_financial_report/i18n/es_MX.po +315 -220
  12. odoo/addons/account_financial_report/i18n/fr.po +620 -435
  13. odoo/addons/account_financial_report/i18n/fr_CH.po +616 -462
  14. odoo/addons/account_financial_report/i18n/hr.po +506 -355
  15. odoo/addons/account_financial_report/i18n/hr_HR.po +331 -232
  16. odoo/addons/account_financial_report/i18n/it.po +538 -356
  17. odoo/addons/account_financial_report/i18n/ja.po +339 -240
  18. odoo/addons/account_financial_report/i18n/nl.po +462 -324
  19. odoo/addons/account_financial_report/i18n/nl_NL.po +318 -220
  20. odoo/addons/account_financial_report/i18n/pt.po +429 -242
  21. odoo/addons/account_financial_report/i18n/pt_BR.po +588 -438
  22. odoo/addons/account_financial_report/i18n/ro.po +499 -342
  23. odoo/addons/account_financial_report/i18n/sl.po +1945 -0
  24. odoo/addons/account_financial_report/i18n/sv.po +1997 -0
  25. odoo/addons/account_financial_report/i18n/tr.po +1947 -0
  26. odoo/addons/account_financial_report/menuitems.xml +1 -1
  27. odoo/addons/account_financial_report/models/__init__.py +2 -0
  28. odoo/addons/account_financial_report/models/account_age_report_configuration.py +49 -0
  29. odoo/addons/account_financial_report/models/account_group.py +62 -23
  30. odoo/addons/account_financial_report/models/account_move_line.py +33 -3
  31. odoo/addons/account_financial_report/models/ir_actions_report.py +6 -4
  32. odoo/addons/account_financial_report/models/res_config_settings.py +36 -0
  33. odoo/addons/account_financial_report/readme/CONFIGURE.md +26 -0
  34. odoo/addons/account_financial_report/readme/CONTRIBUTORS.md +38 -0
  35. odoo/addons/account_financial_report/readme/CREDITS.md +1 -0
  36. odoo/addons/account_financial_report/readme/DESCRIPTION.md +21 -0
  37. odoo/addons/account_financial_report/readme/HISTORY.md +16 -0
  38. odoo/addons/account_financial_report/readme/ROADMAP.md +6 -0
  39. odoo/addons/account_financial_report/report/abstract_report.py +73 -23
  40. odoo/addons/account_financial_report/report/abstract_report_xlsx.py +28 -23
  41. odoo/addons/account_financial_report/report/aged_partner_balance.py +131 -30
  42. odoo/addons/account_financial_report/report/aged_partner_balance_xlsx.py +158 -118
  43. odoo/addons/account_financial_report/report/general_ledger.py +421 -340
  44. odoo/addons/account_financial_report/report/general_ledger_xlsx.py +127 -75
  45. odoo/addons/account_financial_report/report/journal_ledger.py +84 -68
  46. odoo/addons/account_financial_report/report/journal_ledger_xlsx.py +14 -8
  47. odoo/addons/account_financial_report/report/open_items.py +113 -70
  48. odoo/addons/account_financial_report/report/open_items_xlsx.py +152 -19
  49. odoo/addons/account_financial_report/report/templates/aged_partner_balance.xml +408 -311
  50. odoo/addons/account_financial_report/report/templates/general_ledger.xml +273 -213
  51. odoo/addons/account_financial_report/report/templates/journal_ledger.xml +70 -76
  52. odoo/addons/account_financial_report/report/templates/layouts.xml +12 -1
  53. odoo/addons/account_financial_report/report/templates/open_items.xml +181 -55
  54. odoo/addons/account_financial_report/report/templates/trial_balance.xml +304 -195
  55. odoo/addons/account_financial_report/report/templates/vat_report.xml +10 -10
  56. odoo/addons/account_financial_report/report/trial_balance.py +463 -211
  57. odoo/addons/account_financial_report/report/trial_balance_xlsx.py +37 -38
  58. odoo/addons/account_financial_report/report/vat_report.py +36 -25
  59. odoo/addons/account_financial_report/report/vat_report_xlsx.py +1 -1
  60. odoo/addons/account_financial_report/security/ir.model.access.csv +2 -0
  61. odoo/addons/account_financial_report/security/security.xml +8 -0
  62. odoo/addons/account_financial_report/static/description/index.html +106 -55
  63. odoo/addons/account_financial_report/static/src/css/report.css +77 -42
  64. odoo/addons/account_financial_report/static/src/css/report_html.css +10 -0
  65. odoo/addons/account_financial_report/static/src/js/report.esm.js +72 -0
  66. odoo/addons/account_financial_report/static/src/js/report_action.esm.js +39 -0
  67. odoo/addons/account_financial_report/static/src/xml/report.xml +10 -9
  68. odoo/addons/account_financial_report/tests/__init__.py +1 -0
  69. odoo/addons/account_financial_report/tests/test_age_report_configuration.py +42 -0
  70. odoo/addons/account_financial_report/tests/test_aged_partner_balance.py +99 -9
  71. odoo/addons/account_financial_report/tests/test_general_ledger.py +19 -9
  72. odoo/addons/account_financial_report/tests/test_journal_ledger.py +18 -9
  73. odoo/addons/account_financial_report/tests/test_open_items.py +42 -2
  74. odoo/addons/account_financial_report/tests/test_trial_balance.py +114 -223
  75. odoo/addons/account_financial_report/tests/test_vat_report.py +17 -9
  76. odoo/addons/account_financial_report/view/account_age_report_configuration_views.xml +41 -0
  77. odoo/addons/account_financial_report/view/res_config_settings_views.xml +51 -0
  78. odoo/addons/account_financial_report/wizard/abstract_wizard.py +23 -0
  79. odoo/addons/account_financial_report/wizard/aged_partner_balance_wizard.py +22 -8
  80. odoo/addons/account_financial_report/wizard/aged_partner_balance_wizard_view.xml +2 -3
  81. odoo/addons/account_financial_report/wizard/general_ledger_wizard.py +42 -36
  82. odoo/addons/account_financial_report/wizard/general_ledger_wizard_view.xml +26 -41
  83. odoo/addons/account_financial_report/wizard/journal_ledger_wizard.py +19 -7
  84. odoo/addons/account_financial_report/wizard/journal_ledger_wizard_view.xml +15 -14
  85. odoo/addons/account_financial_report/wizard/open_items_wizard.py +34 -8
  86. odoo/addons/account_financial_report/wizard/open_items_wizard_view.xml +16 -14
  87. odoo/addons/account_financial_report/wizard/trial_balance_wizard.py +68 -45
  88. odoo/addons/account_financial_report/wizard/trial_balance_wizard_view.xml +40 -39
  89. odoo/addons/account_financial_report/wizard/vat_report_wizard.py +9 -3
  90. odoo/addons/account_financial_report/wizard/vat_report_wizard_view.xml +14 -14
  91. odoo_addon_account_financial_report-18.0.1.4.4.3.dist-info/METADATA +234 -0
  92. odoo_addon_account_financial_report-18.0.1.4.4.3.dist-info/RECORD +107 -0
  93. {odoo_addon_account_financial_report-15.0.1.1.0.1.dist-info → odoo_addon_account_financial_report-18.0.1.4.4.3.dist-info}/WHEEL +1 -1
  94. odoo_addon_account_financial_report-18.0.1.4.4.3.dist-info/top_level.txt +1 -0
  95. odoo/addons/account_financial_report/readme/CONTRIBUTORS.rst +0 -35
  96. odoo/addons/account_financial_report/readme/DESCRIPTION.rst +0 -16
  97. odoo/addons/account_financial_report/readme/HISTORY.rst +0 -19
  98. odoo/addons/account_financial_report/readme/ROADMAP.rst +0 -7
  99. odoo/addons/account_financial_report/static/src/js/action_manager_report.js +0 -37
  100. odoo/addons/account_financial_report/static/src/js/client_action.js +0 -58
  101. odoo/addons/account_financial_report/static/src/js/report.js +0 -58
  102. odoo_addon_account_financial_report-15.0.1.1.0.1.dist-info/METADATA +0 -179
  103. odoo_addon_account_financial_report-15.0.1.1.0.1.dist-info/RECORD +0 -95
  104. odoo_addon_account_financial_report-15.0.1.1.0.1.dist-info/top_level.txt +0 -1
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="utf-8" ?>
2
2
  <odoo>
3
3
  <template id="trial_balance">
4
- <t t-call="web.html_container">
4
+ <t t-call="account_financial_report.html_container">
5
5
  <t t-foreach="docs" t-as="o">
6
6
  <t t-call="account_financial_report.internal_layout">
7
7
  <t t-call="account_financial_report.report_trial_balance_base" />
@@ -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,68 +36,92 @@
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
- <t t-if="hierarchy_on == 'none'">
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_ids', '=', grouped_item['id'])]"
56
+ />
57
+ <t
58
+ t-set="aml_domain_extra"
59
+ t-else=""
60
+ t-value="[('analytic_account_ids', '=', False)]"
61
+ />
62
+ <div class="act_as_table data_table" style="width: 100%;">
50
63
  <t
51
- t-call="account_financial_report.report_trial_balance_line"
64
+ t-call="account_financial_report.report_trial_balance_lines_header"
52
65
  />
53
- </t>
54
- <t t-if="hierarchy_on == 'computed'">
55
- <t t-if="balance['type'] == 'group_type'">
56
- <t
57
- t-set="style"
58
- t-value="style + 'font-weight: bold; color: blue;'"
59
- />
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;'" />
60
70
  <t
61
71
  t-call="account_financial_report.report_trial_balance_line"
62
72
  />
63
73
  </t>
64
- <t t-if="balance['type'] == 'account_type'">
65
- <t
66
- t-call="account_financial_report.report_trial_balance_line"
67
- />
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 t-if="balance['type'] == 'group_type'">
102
+ <t
103
+ t-set="style"
104
+ t-value="style + 'font-weight: bold; color: blue;'"
105
+ />
106
+ </t>
68
107
  </t>
69
- </t>
70
- <!-- <t t-set="padding" t-value="line.level * 4"/>-->
71
- <!-- <t t-if="hierarchy_on != 'none'">-->
72
- <!-- <t t-set="style" t-value="'font-size: ' + str(14 - line.level) + 'px; margin-left: ' + str(line.level * 4) + 'px;'"/>-->
73
- <!-- </t>-->
74
- <t t-if="hierarchy_on == 'relation'">
75
- <t t-if="balance['type'] == 'group_type'">
76
- <t
77
- t-set="style"
78
- t-value="style + 'font-weight: bold; color: blue;'"
79
- />
108
+ <t t-if="show_hierarchy and limit_hierarchy_level">
80
109
  <t
81
- t-call="account_financial_report.report_trial_balance_line"
82
- />
83
- </t>
84
- <t t-if="balance['type'] == 'account_type'">
85
- <t t-if="limit_hierarchy_level">
86
- <t t-if="show_hierarchy_level > balance['level']">
87
- <t
88
- t-call="account_financial_report.report_trial_balance_line"
89
- />
90
- </t>
91
- </t>
92
- <t t-if="not limit_hierarchy_level">
110
+ t-if="show_hierarchy_level > balance['level'] and (not hide_parent_hierarchy_level or (show_hierarchy_level - 1) == balance['level'])"
111
+ >
93
112
  <t
94
113
  t-call="account_financial_report.report_trial_balance_line"
95
114
  />
96
115
  </t>
97
116
  </t>
117
+ <t t-else="">
118
+ <t
119
+ t-call="account_financial_report.report_trial_balance_line"
120
+ />
121
+ </t>
98
122
  </t>
99
- </t>
100
- </div>
123
+ </div>
124
+ </t>
101
125
  </t>
102
126
  <!-- Display partner lines -->
103
127
  <t t-if="show_partner_details">
@@ -117,8 +141,8 @@
117
141
  view-type="form"
118
142
  >
119
143
  <t
120
- t-raw="accounts_data[account_id]['code']"
121
- /> - <t t-raw="accounts_data[account_id]['name']" />
144
+ t-out="accounts_data[account_id]['code']"
145
+ /> - <t t-out="accounts_data[account_id]['name']" />
122
146
  </span>
123
147
  </div>
124
148
  <div class="act_as_table data_table" style="width: 100%;">
@@ -164,9 +188,9 @@
164
188
  <div class="act_as_row">
165
189
  <div class="act_as_cell">
166
190
  From:
167
- <span t-esc="date_from" t-options="{'widget': 'date'}" />
191
+ <span t-out="date_from" t-options="{'widget': 'date'}" />
168
192
  To
169
- <span t-esc="date_to" t-options="{'widget': 'date'}" />
193
+ <span t-out="date_to" t-options="{'widget': 'date'}" />
170
194
  </div>
171
195
  <div class="act_as_cell">
172
196
  <t t-if="only_posted_moves">All posted entries</t>
@@ -179,7 +203,7 @@
179
203
  <div class="act_as_cell">
180
204
  <t t-if="limit_hierarchy_level">
181
205
  Level
182
- <span t-esc="show_hierarchy_level" />
206
+ <span t-out="show_hierarchy_level" />
183
207
  </t>
184
208
  <t t-if="not limit_hierarchy_level">No limit</t>
185
209
  </div>
@@ -214,87 +238,88 @@
214
238
  <!--## Ending balance-->
215
239
  <div class="act_as_cell" style="width: 9%;">Ending balance</div>
216
240
  <t t-if="foreign_currency">
217
- <!--## currency_name-->
218
- <div class="act_as_cell" style="width: 4%;">Cur.</div>
219
241
  <!--## amount_currency-->
220
- <div class="act_as_cell" style="width: 9%;">
221
- Initial
222
- balance cur.
223
- </div>
224
- <div class="act_as_cell" style="width: 9%;">
225
- Ending balance
226
- cur.
227
- </div>
242
+ <div class="act_as_cell" style="width: 11%;">Initial
243
+ balance cur.</div>
244
+ <div class="act_as_cell" style="width: 11%;">Ending balance
245
+ cur.</div>
228
246
  </t>
229
247
  </div>
230
248
  </div>
231
249
  </template>
232
250
  <template id="account_financial_report.report_trial_balance_line">
251
+ <t
252
+ t-set="aml_domain_common"
253
+ t-if="only_posted_moves"
254
+ t-value="[('parent_state', '=', 'posted')]"
255
+ />
256
+ <t
257
+ t-set="aml_domain_common"
258
+ t-else=""
259
+ t-value="[('parent_state', 'in', ('posted', 'draft'))]"
260
+ />
233
261
  <!-- # line -->
234
262
  <div class="act_as_row lines">
235
263
  <t t-if="not show_partner_details">
236
264
  <!--## Code-->
237
265
  <t t-if="balance['type'] == 'account_type'">
238
- <div class="act_as_cell left">
266
+ <div class="act_as_cell left" t-att-style="style">
239
267
  <span
240
268
  t-att-res-id="balance['id']"
241
269
  res-model="account.account"
242
270
  view-type="form"
243
271
  >
244
- <t t-att-style="style" t-esc="balance['code']" />
272
+ <t t-out="balance['code']" />
245
273
  </span>
246
274
  </div>
247
275
  <!-- ## Account/Partner-->
248
- <div class="act_as_cell left">
276
+ <div class="act_as_cell left" t-att-style="style">
249
277
  <span
250
278
  t-att-res-id="balance['id']"
251
279
  res-model="account.account"
252
280
  view-type="form"
253
281
  >
254
- <t t-att-style="style" t-esc="balance['name']" />
282
+ <t t-out="balance['name']" />
255
283
  </span>
256
284
  </div>
257
285
  </t>
258
286
  <t t-if="balance['type'] == 'group_type'">
259
- <div class="act_as_cell left">
287
+ <div class="act_as_cell left" t-att-style="style">
260
288
  <t t-set="res_model" t-value="'account.group'" />
261
289
  <span
262
290
  t-att-res-id="balance['id']"
263
291
  res-model="account.group"
264
292
  view-type="form"
265
293
  >
266
- <t t-att-style="style" t-raw="balance['code']" />
294
+ <t t-out="balance['code']" />
267
295
  </span>
268
296
  </div>
269
- <div class="act_as_cell left">
297
+ <div class="act_as_cell left" t-att-style="style">
270
298
  <t t-set="res_model" t-value="'account.group'" />
271
299
  <span
272
300
  t-att-res-id="balance['id']"
273
301
  res-model="account.group"
274
302
  view-type="form"
275
303
  >
276
- <t t-att-style="style" t-esc="balance['name']" />
304
+ <t t-out="balance['name']" />
277
305
  </span>
278
306
  </div>
279
307
  </t>
280
308
  </t>
281
309
  <t t-if="show_partner_details">
282
- <div class="act_as_cell left">
310
+ <div class="act_as_cell left" t-att-style="style">
283
311
  <t t-set="res_model" t-value="'res.partner'" />
284
312
  <span
285
313
  t-att-res-id="partner_id"
286
314
  res-model="res.partner"
287
315
  view-type="form"
288
316
  >
289
- <t
290
- t-att-style="style"
291
- t-esc="partners_data[partner_id]['name']"
292
- />
317
+ <t t-out="partners_data[partner_id]['name']" />
293
318
  </span>
294
319
  </div>
295
320
  </t>
296
321
  <!--## Initial balance-->
297
- <div class="act_as_cell amount">
322
+ <div class="act_as_cell amount" t-att-style="style">
298
323
  <t t-if="not show_partner_details">
299
324
  <t t-if="balance['type'] == 'account_type'">
300
325
  <t
@@ -302,10 +327,12 @@
302
327
  t-value="[('account_id', '=', balance['id']),
303
328
  ('date', '&lt;', date_from)]"
304
329
  />
305
- <span t-att-domain="domain" res-model="account.move.line">
330
+ <span
331
+ t-att-domain="domain+aml_domain_common+aml_domain_extra"
332
+ res-model="account.move.line"
333
+ >
306
334
  <t
307
- t-att-style="style"
308
- t-esc="balance['initial_balance']"
335
+ t-out="balance['initial_balance']"
309
336
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
310
337
  />
311
338
  </span>
@@ -316,10 +343,12 @@
316
343
  t-value="[('account_id', 'in', balance['account_ids']),
317
344
  ('date', '&lt;', date_from)]"
318
345
  />
319
- <span t-att-domain="domain" res-model="account.move.line">
346
+ <span
347
+ t-att-domain="domain+aml_domain_common"
348
+ res-model="account.move.line"
349
+ >
320
350
  <t
321
- t-att-style="style"
322
- t-raw="balance['initial_balance']"
351
+ t-out="balance['initial_balance']"
323
352
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
324
353
  />
325
354
  </span>
@@ -332,17 +361,19 @@
332
361
  ('partner_id', '=', int(partner_id)),
333
362
  ('date', '&lt;', date_from)]"
334
363
  />
335
- <span t-att-domain="domain" res-model="account.move.line">
364
+ <span
365
+ t-att-domain="domain+aml_domain_common"
366
+ res-model="account.move.line"
367
+ >
336
368
  <t
337
- t-att-style="style"
338
- t-raw="total_amount[account_id][partner_id]['initial_balance']"
369
+ t-out="total_amount[account_id][partner_id]['initial_balance']"
339
370
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
340
371
  />
341
372
  </span>
342
373
  </t>
343
374
  </div>
344
375
  <!--## Debit-->
345
- <div class="act_as_cell amount">
376
+ <div class="act_as_cell amount" t-att-style="style">
346
377
  <t t-if="not show_partner_details">
347
378
  <t t-if="balance['type'] == 'account_type'">
348
379
  <t
@@ -352,10 +383,12 @@
352
383
  ('date', '&lt;=', date_to),
353
384
  ('debit', '&lt;&gt;', 0)]"
354
385
  />
355
- <span t-att-domain="domain" res-model="account.move.line">
386
+ <span
387
+ t-att-domain="domain+aml_domain_common+aml_domain_extra"
388
+ res-model="account.move.line"
389
+ >
356
390
  <t
357
- t-att-style="style"
358
- t-esc="balance['debit']"
391
+ t-out="balance['debit']"
359
392
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
360
393
  />
361
394
  </span>
@@ -368,10 +401,12 @@
368
401
  ('date', '&lt;=', date_to),
369
402
  ('debit', '&lt;&gt;', 0)]"
370
403
  />
371
- <span t-att-domain="domain" res-model="account.move.line">
404
+ <span
405
+ t-att-domain="domain+aml_domain_common"
406
+ res-model="account.move.line"
407
+ >
372
408
  <t
373
- t-att-style="style"
374
- t-raw="balance['debit']"
409
+ t-out="balance['debit']"
375
410
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
376
411
  />
377
412
  </span>
@@ -386,17 +421,19 @@
386
421
  ('date', '&lt;=', date_to),
387
422
  ('debit', '&lt;&gt;', 0)]"
388
423
  />
389
- <span t-att-domain="domain" res-model="account.move.line">
424
+ <span
425
+ t-att-domain="domain+aml_domain_common"
426
+ res-model="account.move.line"
427
+ >
390
428
  <t
391
- t-att-style="style"
392
- t-raw="total_amount[account_id][partner_id]['debit']"
429
+ t-out="total_amount[account_id][partner_id]['debit']"
393
430
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
394
431
  />
395
432
  </span>
396
433
  </t>
397
434
  </div>
398
435
  <!-- &lt;!&ndash;## Credit&ndash;&gt;-->
399
- <div class="act_as_cell amount">
436
+ <div class="act_as_cell amount" t-att-style="style">
400
437
  <t t-if="not show_partner_details">
401
438
  <t t-if="balance['type'] == 'account_type'">
402
439
  <t
@@ -406,10 +443,12 @@
406
443
  ('date', '&lt;=', date_to),
407
444
  ('credit', '&lt;&gt;', 0)]"
408
445
  />
409
- <span t-att-domain="domain" res-model="account.move.line">
446
+ <span
447
+ t-att-domain="domain+aml_domain_common+aml_domain_extra"
448
+ res-model="account.move.line"
449
+ >
410
450
  <t
411
- t-att-style="style"
412
- t-esc="balance['credit']"
451
+ t-out="balance['credit']"
413
452
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
414
453
  />
415
454
  </span>
@@ -422,10 +461,12 @@
422
461
  ('date', '&lt;=', date_to),
423
462
  ('credit', '&lt;&gt;', 0)]"
424
463
  />
425
- <span t-att-domain="domain" res-model="account.move.line">
464
+ <span
465
+ t-att-domain="domain+aml_domain_common"
466
+ res-model="account.move.line"
467
+ >
426
468
  <t
427
- t-att-style="style"
428
- t-raw="balance['credit']"
469
+ t-out="balance['credit']"
429
470
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
430
471
  />
431
472
  </span>
@@ -440,17 +481,19 @@
440
481
  ('date', '&lt;=', date_to),
441
482
  ('credit', '&lt;&gt;', 0)]"
442
483
  />
443
- <span t-att-domain="domain" res-model="account.move.line">
484
+ <span
485
+ t-att-domain="domain+aml_domain_common"
486
+ res-model="account.move.line"
487
+ >
444
488
  <t
445
- t-att-style="style"
446
- t-raw="total_amount[account_id][partner_id]['credit']"
489
+ t-out="total_amount[account_id][partner_id]['credit']"
447
490
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
448
491
  />
449
492
  </span>
450
493
  </t>
451
494
  </div>
452
495
  <!-- &lt;!&ndash;## Period balance&ndash;&gt;-->
453
- <div class="act_as_cell amount">
496
+ <div class="act_as_cell amount" t-att-style="style">
454
497
  <t t-if="not show_partner_details">
455
498
  <t t-if="balance['type'] == 'account_type'">
456
499
  <t
@@ -460,10 +503,12 @@
460
503
  ('date', '&lt;=', date_to),
461
504
  ('balance', '&lt;&gt;', 0)]"
462
505
  />
463
- <span t-att-domain="domain" res-model="account.move.line">
506
+ <span
507
+ t-att-domain="domain+aml_domain_common+aml_domain_extra"
508
+ res-model="account.move.line"
509
+ >
464
510
  <t
465
- t-att-style="style"
466
- t-esc="balance['balance']"
511
+ t-out="balance['balance']"
467
512
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
468
513
  />
469
514
  </span>
@@ -475,10 +520,12 @@
475
520
  ('date', '&gt;=', date_from),
476
521
  ('date', '&lt;=', date_to)]"
477
522
  />
478
- <span t-att-domain="domain" res-model="account.move.line">
523
+ <span
524
+ t-att-domain="domain+aml_domain_common"
525
+ res-model="account.move.line"
526
+ >
479
527
  <t
480
- t-att-style="style"
481
- t-raw="balance['balance']"
528
+ t-out="balance['balance']"
482
529
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
483
530
  />
484
531
  </span>
@@ -493,17 +540,19 @@
493
540
  ('date', '&lt;=', date_to),
494
541
  ('balance', '&lt;&gt;', 0)]"
495
542
  />
496
- <span t-att-domain="domain" res-model="account.move.line">
543
+ <span
544
+ t-att-domain="domain+aml_domain_common"
545
+ res-model="account.move.line"
546
+ >
497
547
  <t
498
- t-att-style="style"
499
- t-raw="total_amount[account_id][partner_id]['balance']"
548
+ t-out="total_amount[account_id][partner_id]['balance']"
500
549
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
501
550
  />
502
551
  </span>
503
552
  </t>
504
553
  </div>
505
554
  <!-- &lt;!&ndash;## Ending balance&ndash;&gt;-->
506
- <div class="act_as_cell amount">
555
+ <div class="act_as_cell amount" t-att-style="style">
507
556
  <t t-if="not show_partner_details">
508
557
  <t t-if="balance['type'] == 'account_type'">
509
558
  <t
@@ -511,10 +560,12 @@
511
560
  t-value="[('account_id', '=', balance['id']),
512
561
  ('date', '&lt;=', date_to)]"
513
562
  />
514
- <span t-att-domain="domain" res-model="account.move.line">
563
+ <span
564
+ t-att-domain="domain+aml_domain_common+aml_domain_extra"
565
+ res-model="account.move.line"
566
+ >
515
567
  <t
516
- t-att-style="style"
517
- t-esc="balance['ending_balance']"
568
+ t-out="balance['ending_balance']"
518
569
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
519
570
  />
520
571
  </span>
@@ -524,10 +575,12 @@
524
575
  t-set="domain"
525
576
  t-value="[('account_id', 'in', balance['account_ids'])]"
526
577
  />
527
- <span t-att-domain="domain" res-model="account.move.line">
578
+ <span
579
+ t-att-domain="domain+aml_domain_common"
580
+ res-model="account.move.line"
581
+ >
528
582
  <t
529
- t-att-style="style"
530
- t-raw="balance['ending_balance']"
583
+ t-out="balance['ending_balance']"
531
584
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
532
585
  />
533
586
  </span>
@@ -540,10 +593,12 @@
540
593
  ('partner_id', '=', int(partner_id)),
541
594
  ('date', '&lt;=', date_to)]"
542
595
  />
543
- <span t-att-domain="domain" res-model="account.move.line">
596
+ <span
597
+ t-att-domain="domain+aml_domain_common"
598
+ res-model="account.move.line"
599
+ >
544
600
  <t
545
- t-att-style="style"
546
- t-esc="total_amount[account_id][partner_id]['ending_balance']"
601
+ t-out="total_amount[account_id][partner_id]['ending_balance']"
547
602
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
548
603
  />
549
604
  </span>
@@ -553,23 +608,23 @@
553
608
  <t t-if="not show_partner_details">
554
609
  <t t-if="balance['type'] == 'account_type'">
555
610
  <t t-if="balance['currency_id']">
556
- <!--## currency_name-->
557
- <div class="act_as_cell" style="width: 4.43%;">
558
- <span t-esc="balance['currency_name']" />
559
- </div>
611
+ <t
612
+ t-set="balance_currency"
613
+ t-value="currency_model.browse(balance['currency_id'])"
614
+ />
560
615
  <!--## Initial balance cur.-->
561
- <div class="act_as_cell amount">
616
+ <div class="act_as_cell amount" t-att-style="style">
562
617
  <t
563
618
  t-set="domain"
564
619
  t-value="[('account_id', '=', balance['id'])]"
565
620
  />
566
621
  <span
567
- t-att-domain="domain"
622
+ t-att-domain="domain+aml_domain_common+aml_domain_extra"
568
623
  res-model="account.move.line"
569
624
  >
570
625
  <t
571
- t-att-style="style"
572
- t-esc="balance['initial_currency_balance']"
626
+ t-out="balance['initial_currency_balance']"
627
+ t-options="{'widget': 'monetary', 'display_currency': balance_currency}"
573
628
  />
574
629
  </span>
575
630
  <!-- <t t-if="line.account_group_id">-->
@@ -580,7 +635,7 @@
580
635
  <!-- t-att-data-res-model="'account.move.line'"-->
581
636
  <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
582
637
  <!-- t-att-style="style">-->
583
- <!-- <t t-att-style="style" t-raw="line.initial_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"/></a>-->
638
+ <!-- <t t-att-style="style" t-out="line.initial_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"/></a>-->
584
639
  <!-- </span>-->
585
640
  <!-- </t>-->
586
641
  </div>
@@ -590,25 +645,23 @@
590
645
  <t t-if="show_partner_details">
591
646
  <t t-if="total_amount[account_id]['currency_id']">
592
647
  <t t-if="type == 'partner_type'">
593
- <!--## currency_name-->
594
- <div class="act_as_cell" style="width: 4.43%;">
595
- <span
596
- t-esc="total_amount[account_id]['currency_name']"
597
- />
598
- </div>
599
- <div class="act_as_cell amount">
648
+ <div class="act_as_cell amount" t-att-style="style">
600
649
  <t
601
650
  t-set="domain"
602
651
  t-value="[('account_id', '=', account_id),
603
652
  ('partner_id', '=', partner_id)]"
604
653
  />
605
654
  <span
606
- t-att-domain="domain"
655
+ t-att-domain="domain+aml_domain_common"
607
656
  res-model="account.move.line"
608
657
  >
609
658
  <t
610
- t-att-style="style"
611
- t-raw="total_amount[account_id][partner_id]['initial_currency_balance']"
659
+ t-set="total_amount_item_currency"
660
+ t-value="currency_model.browse(total_amount[account_id]['currency_id'])"
661
+ />
662
+ <t
663
+ t-out="total_amount[account_id][partner_id]['initial_currency_balance']"
664
+ t-options="{'widget': 'monetary', 'display_currency': total_amount_item_currency}"
612
665
  />
613
666
  </span>
614
667
  </div>
@@ -619,18 +672,18 @@
619
672
  <t t-if="not show_partner_details">
620
673
  <t t-if="balance['type'] == 'account_type'">
621
674
  <t t-if="balance['currency_id']">
622
- <div class="act_as_cell amount">
675
+ <div class="act_as_cell amount" t-att-style="style">
623
676
  <t
624
677
  t-set="domain"
625
678
  t-value="[('account_id', '=', balance['id'])]"
626
679
  />
627
680
  <span
628
- t-att-domain="domain"
681
+ t-att-domain="domain+aml_domain_common+aml_domain_extra"
629
682
  res-model="account.move.line"
630
683
  >
631
684
  <t
632
- t-att-style="style"
633
- t-raw="balance['ending_currency_balance']"
685
+ t-out="balance['ending_currency_balance']"
686
+ t-options="{'widget': 'monetary', 'display_currency': balance_currency}"
634
687
  />
635
688
  </span>
636
689
  <!-- <t t-if="line.account_group_id">-->
@@ -641,7 +694,7 @@
641
694
  <!-- t-att-data-res-model="'account.move.line'"-->
642
695
  <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
643
696
  <!-- t-att-style="style">-->
644
- <!-- <t t-att-style="style" t-raw="line.final_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"/></a>-->
697
+ <!-- <t t-att-style="style" t-out="line.final_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"/></a>-->
645
698
  <!-- </span>-->
646
699
  <!-- </t>-->
647
700
  </div>
@@ -650,7 +703,7 @@
650
703
  </t>
651
704
  <t t-if="show_partner_details">
652
705
  <t t-if="total_amount[account_id]['currency_id']">
653
- <div class="act_as_cell amount">
706
+ <div class="act_as_cell amount" t-att-style="style">
654
707
  <t t-if="type == 'partner_type'">
655
708
  <t
656
709
  t-set="domain"
@@ -658,12 +711,16 @@
658
711
  ('partner_id', '=', partner_id)]"
659
712
  />
660
713
  <span
661
- t-att-domain="domain"
714
+ t-att-domain="domain+aml_domain_common"
662
715
  res-model="account.move.line"
663
716
  >
664
717
  <t
665
- t-att-style="style"
666
- t-raw="total_amount[account_id][partner_id]['ending_currency_balance']"
718
+ t-set="total_amount_item_currency"
719
+ t-value="currency_model.browse(total_amount[account_id]['currency_id'])"
720
+ />
721
+ <t
722
+ t-out="total_amount[account_id][partner_id]['ending_currency_balance']"
723
+ t-options="{'widget': 'monetary', 'display_currency': total_amount_item_currency}"
667
724
  />
668
725
  </span>
669
726
  </t>
@@ -675,7 +732,6 @@
675
732
  <!--## balance_currency-->
676
733
  <div class="act_as_cell" />
677
734
  <div class="act_as_cell" />
678
- <div class="act_as_cell" />
679
735
  </t>
680
736
  </t>
681
737
  <t t-if="not show_partner_details">
@@ -684,14 +740,12 @@
684
740
  <!--## balance_currency-->
685
741
  <div class="act_as_cell" />
686
742
  <div class="act_as_cell" />
687
- <div class="act_as_cell" />
688
743
  </t>
689
744
  </t>
690
745
  <t t-if="balance['type'] == 'group_type'">
691
746
  <!--## balance_currency-->
692
747
  <div class="act_as_cell" />
693
748
  <div class="act_as_cell" />
694
- <div class="act_as_cell" />
695
749
  </t>
696
750
  </t>
697
751
  </t>
@@ -709,7 +763,7 @@
709
763
  <!-- t-att-data-res-model="res_model"-->
710
764
  <!-- class="o_account_financial_reports_web_action"-->
711
765
  <!-- t-att-style="style">-->
712
- <!-- <t t-att-style="style" t-raw="account.code"/> - <t t-att-style="style" t-raw="account.name"/></a>-->
766
+ <!-- <t t-att-style="style" t-out="account.code"/> - <t t-att-style="style" t-out="account.name"/></a>-->
713
767
  <!-- </span>-->
714
768
  <!-- </div>-->
715
769
  <!-- &lt;!&ndash;## Initial balance&ndash;&gt;-->
@@ -722,7 +776,7 @@
722
776
  <!-- t-att-data-res-model="'account.move.line'"-->
723
777
  <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
724
778
  <!-- t-att-style="style">-->
725
- <!-- <t t-att-style="style" t-raw="account.initial_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
779
+ <!-- <t t-att-style="style" t-out="account.initial_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
726
780
  <!-- </span>-->
727
781
  <!-- </div>-->
728
782
  <!-- &lt;!&ndash;## Debit&ndash;&gt;-->
@@ -737,7 +791,7 @@
737
791
  <!-- t-att-data-res-model="'account.move.line'"-->
738
792
  <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
739
793
  <!-- t-att-style="style">-->
740
- <!-- <t t-att-style="style" t-raw="account.debit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
794
+ <!-- <t t-att-style="style" t-out="account.debit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
741
795
  <!-- </span>-->
742
796
  <!-- </div>-->
743
797
  <!-- &lt;!&ndash;## Credit&ndash;&gt;-->
@@ -752,7 +806,7 @@
752
806
  <!-- t-att-data-res-model="'account.move.line'"-->
753
807
  <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
754
808
  <!-- t-att-style="style">-->
755
- <!-- <t t-att-style="style" t-raw="account.credit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
809
+ <!-- <t t-att-style="style" t-out="account.credit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
756
810
  <!-- </span>-->
757
811
  <!-- </div>-->
758
812
  <!-- &lt;!&ndash;## Period Balance &ndash;&gt;-->
@@ -767,7 +821,7 @@
767
821
  <!-- t-att-data-res-model="'account.move.line'"-->
768
822
  <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
769
823
  <!-- t-att-style="style">-->
770
- <!-- <t t-att-style="style" t-raw="account.period_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
824
+ <!-- <t t-att-style="style" t-out="account.period_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
771
825
  <!-- </span>-->
772
826
  <!-- </div>-->
773
827
  <!-- &lt;!&ndash;## Ending balance&ndash;&gt;-->
@@ -779,7 +833,7 @@
779
833
  <!-- t-att-data-res-model="'account.move.line'"-->
780
834
  <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
781
835
  <!-- t-att-style="style" >-->
782
- <!-- <t t-att-style="style" t-raw="account.final_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
836
+ <!-- <t t-att-style="style" t-out="account.final_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>-->
783
837
  <!-- </span>-->
784
838
  <!-- </div>-->
785
839
  <!-- <t t-if="foreign_currency">-->
@@ -800,7 +854,7 @@
800
854
  <!-- t-att-data-res-model="'account.move.line'"-->
801
855
  <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
802
856
  <!-- t-att-style="style">-->
803
- <!-- <t t-att-style="style" t-raw="account.initial_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': account.account_id.currency_id}"/></a>-->
857
+ <!-- <t t-att-style="style" t-out="account.initial_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': account.account_id.currency_id}"/></a>-->
804
858
  <!-- </span>-->
805
859
  <!-- </div>-->
806
860
  <!-- <div class="act_as_cell amount" style="width: 8.86%;">-->
@@ -811,7 +865,7 @@
811
865
  <!-- t-att-data-res-model="'account.move.line'"-->
812
866
  <!-- class="o_account_financial_reports_web_action_monetary_multi"-->
813
867
  <!-- t-att-style="style" >-->
814
- <!-- <t t-att-style="style" t-raw="account.final_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': account.account_id.currency_id}"/></a>-->
868
+ <!-- <t t-att-style="style" t-out="account.final_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': account.account_id.currency_id}"/></a>-->
815
869
  <!-- </span>-->
816
870
  <!-- </div>-->
817
871
  <!-- </t>-->
@@ -830,52 +884,107 @@
830
884
  <div class="act_as_row labels" style="font-weight: bold;">
831
885
  <!--## date-->
832
886
  <div class="act_as_cell first_column" style="width: 33%;">
833
- <span t-esc="accounts_data[account_id]['code']" />
834
- -
835
- <span t-esc="accounts_data[account_id]['name']" />
887
+ <t
888
+ t-if="grouped_by and balance['type'] in ('analytic_account_type', 'total')"
889
+ >
890
+ <span t-out="balance['name']" />
891
+ </t>
892
+ <t t-else="">
893
+ <span t-out="accounts_data[account_id]['code']" />
894
+ -
895
+ <span t-out="accounts_data[account_id]['name']" />
896
+ </t>
836
897
  </div>
837
898
  <!--## Initial Balance-->
838
899
  <div class="act_as_cell amount" style="width: 9%;">
839
- <span
840
- t-esc="total_amount[account_id]['initial_balance']"
841
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
842
- />
900
+ <t
901
+ t-if="grouped_by and balance['type'] in ('analytic_account_type', 'total')"
902
+ >
903
+ <span
904
+ t-out="balance['initial_balance']"
905
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
906
+ />
907
+ </t>
908
+ <t t-else="">
909
+ <span
910
+ t-out="total_amount[account_id]['initial_balance']"
911
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
912
+ />
913
+ </t>
843
914
  </div>
844
915
  <!--## Debit-->
845
916
  <div class="act_as_cell amount" style="width: 9%;">
846
- <span
847
- t-esc="total_amount[account_id]['debit']"
848
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
849
- />
917
+ <t
918
+ t-if="grouped_by and balance['type'] in ('analytic_account_type', 'total')"
919
+ >
920
+ <span
921
+ t-out="balance['debit']"
922
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
923
+ />
924
+ </t>
925
+ <t t-else="">
926
+ <span
927
+ t-out="total_amount[account_id]['debit']"
928
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
929
+ />
930
+ </t>
850
931
  </div>
851
932
  <!--## Credit-->
852
933
  <div class="act_as_cell amount" style="width: 9%;">
853
- <span
854
- t-esc="total_amount[account_id]['credit']"
855
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
856
- />
934
+ <t
935
+ t-if="grouped_by and balance['type'] in ('analytic_account_type', 'total')"
936
+ >
937
+ <span
938
+ t-out="balance['credit']"
939
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
940
+ />
941
+ </t>
942
+ <t t-else="">
943
+ <span
944
+ t-out="total_amount[account_id]['credit']"
945
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
946
+ />
947
+ </t>
857
948
  </div>
858
949
  <!--## Period balance-->
859
950
  <div class="act_as_cell amount" style="width: 9%;">
860
- <span
861
- t-esc="total_amount[account_id]['balance']"
862
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
863
- />
951
+ <t
952
+ t-if="grouped_by and balance['type'] in ('analytic_account_type', 'total')"
953
+ >
954
+ <span
955
+ t-out="balance['balance']"
956
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
957
+ />
958
+ </t>
959
+ <t t-else="">
960
+ <span
961
+ t-out="total_amount[account_id]['balance']"
962
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
963
+ />
964
+ </t>
864
965
  </div>
865
966
  <!--## Ending balance-->
866
967
  <div class="act_as_cell amount" style="width: 9%;">
867
- <span
868
- t-esc="total_amount[account_id]['ending_balance']"
869
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
870
- />
968
+ <t
969
+ t-if="grouped_by and balance['type'] in ('analytic_account_type', 'total')"
970
+ >
971
+ <span
972
+ t-out="balance['ending_balance']"
973
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
974
+ />
975
+ </t>
976
+ <t t-else="">
977
+ <span
978
+ t-out="total_amount[account_id]['ending_balance']"
979
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
980
+ />
981
+ </t>
871
982
  </div>
872
983
  <t t-if="foreign_currency">
873
- <!--## currency_name-->
874
- <div class="act_as_cell" style="width: 4%;" />
875
984
  <!--## amount_total_due_currency-->
876
- <div class="act_as_cell" style="width: 9%;" />
985
+ <div class="act_as_cell" style="width: 11%;" />
877
986
  <!--## amount_residual_currency-->
878
- <div class="act_as_cell" style="width: 9%;" />
987
+ <div class="act_as_cell" style="width: 11%;" />
879
988
  </t>
880
989
  </div>
881
990
  </div>