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="aged_partner_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
@@ -116,16 +116,24 @@
116
116
  <div class="act_as_cell" style="width: 9.64%;">Residual</div>
117
117
  <!--## current-->
118
118
  <div class="act_as_cell" style="width: 9.64%;">Not due</div>
119
- <!--## age_30_days-->
120
- <div class="act_as_cell" style="width: 9.64%;">1 - 30 d.</div>
121
- <!--## age_60_days-->
122
- <div class="act_as_cell" style="width: 9.64%;">31 - 60 d.</div>
123
- <!--## age_90_days-->
124
- <div class="act_as_cell" style="width: 9.64%;">61 - 90 d.</div>
125
- <!--## age_120_days-->
126
- <div class="act_as_cell" style="width: 9.64%;">91 - 120 d.</div>
127
- <!--## older-->
128
- <div class="act_as_cell" style="width: 9.64%;">> 120 d.</div>
119
+ <t t-if="not age_partner_config">
120
+ <!--## age_30_days-->
121
+ <div class="act_as_cell" style="width: 9.64%;">1 - 30 d.</div>
122
+ <!--## age_60_days-->
123
+ <div class="act_as_cell" style="width: 9.64%;">31 - 60 d.</div>
124
+ <!--## age_90_days-->
125
+ <div class="act_as_cell" style="width: 9.64%;">61 - 90 d.</div>
126
+ <!--## age_120_days-->
127
+ <div class="act_as_cell" style="width: 9.64%;">91 - 120 d.</div>
128
+ <!--## older-->
129
+ <div class="act_as_cell" style="width: 9.64%;">> 120 d.</div>
130
+ </t>
131
+ <!--## dynamic columns-->
132
+ <t t-foreach="age_partner_config.line_ids" t-as="column_dynamic">
133
+ <div class="act_as_cell">
134
+ <span t-out="column_dynamic.name" />
135
+ </div>
136
+ </t>
129
137
  </div>
130
138
  </div>
131
139
  </template>
@@ -150,41 +158,51 @@
150
158
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
151
159
  />
152
160
  </div>
153
- <!--## age_30_days-->
154
- <div class="act_as_cell amount">
155
- <span
156
- t-esc="partner['30_days']"
157
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
158
- />
159
- </div>
160
- <!--## age_60_days-->
161
- <div class="act_as_cell amount">
162
- <span
163
- t-esc="partner['60_days']"
164
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
165
- />
166
- </div>
167
- <!--## age_90_days-->
168
- <div class="act_as_cell amount">
169
- <span
170
- t-esc="partner['90_days']"
171
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
172
- />
173
- </div>
174
- <!--## age_120_days-->
175
- <div class="act_as_cell amount">
176
- <span
177
- t-esc="partner['120_days']"
178
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
179
- />
180
- </div>
181
- <!--## older-->
182
- <div class="act_as_cell amount">
183
- <span
184
- t-esc="partner['older']"
185
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
186
- />
187
- </div>
161
+ <t t-if="not age_partner_config">
162
+ <!--## age_30_days-->
163
+ <div class="act_as_cell amount">
164
+ <span
165
+ t-esc="partner['30_days']"
166
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
167
+ />
168
+ </div>
169
+ <!--## age_60_days-->
170
+ <div class="act_as_cell amount">
171
+ <span
172
+ t-esc="partner['60_days']"
173
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
174
+ />
175
+ </div>
176
+ <!--## age_90_days-->
177
+ <div class="act_as_cell amount">
178
+ <span
179
+ t-esc="partner['90_days']"
180
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
181
+ />
182
+ </div>
183
+ <!--## age_120_days-->
184
+ <div class="act_as_cell amount">
185
+ <span
186
+ t-esc="partner['120_days']"
187
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
188
+ />
189
+ </div>
190
+ <!--## older-->
191
+ <div class="act_as_cell amount">
192
+ <span
193
+ t-esc="partner['older']"
194
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
195
+ />
196
+ </div>
197
+ </t>
198
+ <t t-foreach="age_partner_config.line_ids" t-as="column_dynamic">
199
+ <div class="act_as_cell amount">
200
+ <span
201
+ t-out="partner[column_dynamic]"
202
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
203
+ />
204
+ </div>
205
+ </t>
188
206
  </div>
189
207
  </template>
190
208
  <template id="report_aged_partner_balance_move_lines">
@@ -218,28 +236,36 @@
218
236
  <div class="act_as_cell" style="width: 6.00%;">Residual</div>
219
237
  <!--## current-->
220
238
  <div class="act_as_cell" style="width: 6.00%;">Current</div>
221
- <!--## age_30_days-->
222
- <div class="act_as_cell" style="width: 6.00%;">
223
- Age 30
224
- d.
225
- </div>
226
- <!--## age_60_days-->
227
- <div class="act_as_cell" style="width: 6.00%;">
228
- Age 60
229
- d.
230
- </div>
231
- <!--## age_90_days-->
232
- <div class="act_as_cell" style="width: 6.00%;">
233
- Age 90
234
- d.
235
- </div>
236
- <!--## age_120_days-->
237
- <div class="act_as_cell" style="width: 6.00%;">
238
- Age 120
239
- d.
240
- </div>
241
- <!--## older-->
242
- <div class="act_as_cell" style="width: 6.00%;">Older</div>
239
+ <t t-if="not age_partner_config">
240
+ <!--## age_30_days-->
241
+ <div class="act_as_cell" style="width: 6.00%;">
242
+ Age ≤ 30
243
+ d.
244
+ </div>
245
+ <!--## age_60_days-->
246
+ <div class="act_as_cell" style="width: 6.00%;">
247
+ Age ≤ 60
248
+ d.
249
+ </div>
250
+ <!--## age_90_days-->
251
+ <div class="act_as_cell" style="width: 6.00%;">
252
+ Age ≤ 90
253
+ d.
254
+ </div>
255
+ <!--## age_120_days-->
256
+ <div class="act_as_cell" style="width: 6.00%;">
257
+ Age ≤ 120
258
+ d.
259
+ </div>
260
+ <!--## older-->
261
+ <div class="act_as_cell" style="width: 6.00%;">Older</div>
262
+ </t>
263
+ <!--## current-->
264
+ <t t-foreach="age_partner_config.line_ids" t-as="column_dynamic">
265
+ <div class="act_as_cell">
266
+ <span t-esc="column_dynamic.name" />
267
+ </div>
268
+ </t>
243
269
  </div>
244
270
  </div>
245
271
  <!-- Display each move lines -->
@@ -353,106 +379,129 @@
353
379
  </span>
354
380
  </t>
355
381
  </div>
356
- <!--## age_30_days-->
357
- <div class="act_as_cell amount">
358
- <t t-if="line['30_days'] == 0">
359
- <span
360
- t-esc="line['30_days']"
361
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
362
- />
363
- </t>
364
- <t t-else="">
365
- <span
366
- domain="[('id', 'in', (line['line_rec'] | line['line_rec'].matched_debit_ids.mapped('debit_move_id') | line['line_rec'].matched_credit_ids.mapped('credit_move_id')).ids)]"
367
- res-model="account.move.line"
368
- >
369
- <t
370
- t-out="line['30_days']"
382
+ <t t-if="not age_partner_config">
383
+ <!--## age_30_days-->
384
+ <div class="act_as_cell amount">
385
+ <t t-if="line['30_days'] == 0">
386
+ <span
387
+ t-esc="line['30_days']"
371
388
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
372
389
  />
373
- </span>
374
- </t>
375
- </div>
376
- <!--## age_60_days-->
377
- <div class="act_as_cell amount">
378
- <t t-if="line['60_days'] == 0">
379
- <span
380
- t-esc="line['60_days']"
381
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
382
- />
383
- </t>
384
- <t t-else="">
385
- <span
386
- domain="[('id', 'in', (line['line_rec'] | line['line_rec'].matched_debit_ids.mapped('debit_move_id') | line['line_rec'].matched_credit_ids.mapped('credit_move_id')).ids)]"
387
- res-model="account.move.line"
388
- >
389
- <t
390
- t-out="line['60_days']"
390
+ </t>
391
+ <t t-else="">
392
+ <span
393
+ domain="[('id', 'in', (line['line_rec'] | line['line_rec'].matched_debit_ids.mapped('debit_move_id') | line['line_rec'].matched_credit_ids.mapped('credit_move_id')).ids)]"
394
+ res-model="account.move.line"
395
+ >
396
+ <t
397
+ t-out="line['30_days']"
398
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
399
+ />
400
+ </span>
401
+ </t>
402
+ </div>
403
+ <!--## age_60_days-->
404
+ <div class="act_as_cell amount">
405
+ <t t-if="line['60_days'] == 0">
406
+ <span
407
+ t-esc="line['60_days']"
391
408
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
392
409
  />
393
- </span>
394
- </t>
395
- </div>
396
- <!--## age_90_days-->
397
- <div class="act_as_cell amount">
398
- <t t-if="line['90_days'] == 0">
399
- <span
400
- t-esc="line['90_days']"
401
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
402
- />
403
- </t>
404
- <t t-else="">
405
- <span
406
- domain="[('id', 'in', (line['line_rec'] | line['line_rec'].matched_debit_ids.mapped('debit_move_id') | line['line_rec'].matched_credit_ids.mapped('credit_move_id')).ids)]"
407
- res-model="account.move.line"
408
- >
409
- <t
410
- t-out="line['90_days']"
410
+ </t>
411
+ <t t-else="">
412
+ <span
413
+ domain="[('id', 'in', (line['line_rec'] | line['line_rec'].matched_debit_ids.mapped('debit_move_id') | line['line_rec'].matched_credit_ids.mapped('credit_move_id')).ids)]"
414
+ res-model="account.move.line"
415
+ >
416
+ <t
417
+ t-out="line['60_days']"
418
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
419
+ />
420
+ </span>
421
+ </t>
422
+ </div>
423
+ <!--## age_90_days-->
424
+ <div class="act_as_cell amount">
425
+ <t t-if="line['90_days'] == 0">
426
+ <span
427
+ t-esc="line['90_days']"
411
428
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
412
429
  />
413
- </span>
414
- </t>
415
- </div>
416
- <!--## age_120_days-->
417
- <div class="act_as_cell amount">
418
- <t t-if="line['120_days'] == 0">
419
- <span
420
- t-esc="line['120_days']"
421
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
422
- />
423
- </t>
424
- <t t-else="">
425
- <span
426
- domain="[('id', 'in', (line['line_rec'] | line['line_rec'].matched_debit_ids.mapped('debit_move_id') | line['line_rec'].matched_credit_ids.mapped('credit_move_id')).ids)]"
427
- res-model="account.move.line"
428
- >
429
- <t
430
- t-out="line['120_days']"
430
+ </t>
431
+ <t t-else="">
432
+ <span
433
+ domain="[('id', 'in', (line['line_rec'] | line['line_rec'].matched_debit_ids.mapped('debit_move_id') | line['line_rec'].matched_credit_ids.mapped('credit_move_id')).ids)]"
434
+ res-model="account.move.line"
435
+ >
436
+ <t
437
+ t-out="line['90_days']"
438
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
439
+ />
440
+ </span>
441
+ </t>
442
+ </div>
443
+ <!--## age_120_days-->
444
+ <div class="act_as_cell amount">
445
+ <t t-if="line['120_days'] == 0">
446
+ <span
447
+ t-esc="line['120_days']"
431
448
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
432
449
  />
433
- </span>
434
- </t>
435
- </div>
436
- <!--## older-->
437
- <div class="act_as_cell amount">
438
- <t t-if="line['older'] == 0">
439
- <span
440
- t-esc="line['older']"
441
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
442
- />
443
- </t>
444
- <t t-else="">
445
- <span
446
- domain="[('id', 'in', (line['line_rec'] | line['line_rec'].matched_debit_ids.mapped('debit_move_id') | line['line_rec'].matched_credit_ids.mapped('credit_move_id')).ids)]"
447
- res-model="account.move.line"
448
- >
449
- <t
450
- t-out="line['older']"
450
+ </t>
451
+ <t t-else="">
452
+ <span
453
+ domain="[('id', 'in', (line['line_rec'] | line['line_rec'].matched_debit_ids.mapped('debit_move_id') | line['line_rec'].matched_credit_ids.mapped('credit_move_id')).ids)]"
454
+ res-model="account.move.line"
455
+ >
456
+ <t
457
+ t-out="line['120_days']"
458
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
459
+ />
460
+ </span>
461
+ </t>
462
+ </div>
463
+ <!--## older-->
464
+ <div class="act_as_cell amount">
465
+ <t t-if="line['older'] == 0">
466
+ <span
467
+ t-esc="line['older']"
451
468
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
452
469
  />
453
- </span>
454
- </t>
455
- </div>
470
+ </t>
471
+ <t t-else="">
472
+ <span
473
+ domain="[('id', 'in', (line['line_rec'] | line['line_rec'].matched_debit_ids.mapped('debit_move_id') | line['line_rec'].matched_credit_ids.mapped('credit_move_id')).ids)]"
474
+ res-model="account.move.line"
475
+ >
476
+ <t
477
+ t-out="line['older']"
478
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
479
+ />
480
+ </span>
481
+ </t>
482
+ </div>
483
+ </t>
484
+ <t t-foreach="age_partner_config.line_ids" t-as="column_dynamic">
485
+ <div class="act_as_cell amount">
486
+ <t t-if="line[column_dynamic] == 0">
487
+ <span
488
+ t-esc="line[column_dynamic]"
489
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
490
+ />
491
+ </t>
492
+ <t t-else="">
493
+ <span
494
+ domain="[('id', 'in', (line['line_rec'] | line['line_rec'].matched_debit_ids.mapped('debit_move_id') | line['line_rec'].matched_credit_ids.mapped('credit_move_id')).ids)]"
495
+ res-model="account.move.line"
496
+ >
497
+ <t
498
+ t-out="line[column_dynamic]"
499
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
500
+ />
501
+ </span>
502
+ </t>
503
+ </div>
504
+ </t>
456
505
  </div>
457
506
  </t>
458
507
  </div>
@@ -482,100 +531,120 @@
482
531
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
483
532
  />
484
533
  </div>
485
- <!--## age_30_days-->
486
- <div class="act_as_cell amount" style="width: 6.00%;">
487
- <span
488
- t-esc="partner_cumul_line['30_days']"
489
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
490
- />
491
- </div>
492
- <!--## age_60_days-->
493
- <div class="act_as_cell amount" style="width: 6.00%;">
494
- <span
495
- t-esc="partner_cumul_line['60_days']"
496
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
497
- />
498
- </div>
499
- <!--## age_90_days-->
500
- <div class="act_as_cell amount" style="width: 6.00%;">
501
- <span
502
- t-esc="partner_cumul_line['90_days']"
503
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
504
- />
505
- </div>
506
- <!--## age_120_days-->
507
- <div class="act_as_cell amount" style="width: 6.00%;">
508
- <span
509
- t-esc="partner_cumul_line['120_days']"
510
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
511
- />
512
- </div>
513
- <!--## older-->
514
- <div class="act_as_cell amount" style="width: 6.00%;">
515
- <span
516
- t-esc="partner_cumul_line['older']"
517
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
518
- />
519
- </div>
520
- </div>
521
- </div>
522
- </template>
523
- <template id="report_aged_partner_balance_account_ending_cumul">
524
- <!-- Display ending balance line for account -->
525
- <div class="act_as_table list_table" style="width: 100%;">
526
- <div class="act_as_row lines" style="font-weight: bold;">
527
- <t t-if="not show_move_line_details">
528
- <!--## total-->
529
- <div class="act_as_cell right" style="width: 32.52%;">Total</div>
530
- <!--## amount_residual-->
531
- <div class="act_as_cell amount" style="width: 9.64%;">
534
+ <t t-if="not age_partner_config">
535
+ <!--## age_30_days-->
536
+ <div class="act_as_cell amount" style="width: 6.00%;">
532
537
  <span
533
- t-esc="account['residual']"
538
+ t-esc="partner_cumul_line['30_days']"
534
539
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
535
540
  />
536
541
  </div>
537
- <!--## current-->
538
- <div class="act_as_cell amount" style="width: 9.64%;">
542
+ <!--## age_60_days-->
543
+ <div class="act_as_cell amount" style="width: 6.00%;">
539
544
  <span
540
- t-esc="account['current']"
545
+ t-esc="partner_cumul_line['60_days']"
541
546
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
542
547
  />
543
548
  </div>
544
- <!--## age_30_days-->
545
- <div class="act_as_cell amount" style="width: 9.64%;">
549
+ <!--## age_90_days-->
550
+ <div class="act_as_cell amount" style="width: 6.00%;">
546
551
  <span
547
- t-esc="account['30_days']"
552
+ t-esc="partner_cumul_line['90_days']"
548
553
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
549
554
  />
550
555
  </div>
551
- <!--## age_60_days-->
552
- <div class="act_as_cell amount" style="width: 9.64%;">
556
+ <!--## age_120_days-->
557
+ <div class="act_as_cell amount" style="width: 6.00%;">
553
558
  <span
554
- t-esc="account['60_days']"
559
+ t-esc="partner_cumul_line['120_days']"
555
560
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
556
561
  />
557
562
  </div>
558
- <!--## age_90_days-->
559
- <div class="act_as_cell amount" style="width: 9.64%;">
563
+ <!--## older-->
564
+ <div class="act_as_cell amount" style="width: 6.00%;">
560
565
  <span
561
- t-esc="account['90_days']"
566
+ t-esc="partner_cumul_line['older']"
562
567
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
563
568
  />
564
569
  </div>
565
- <!--## age_120_days-->
570
+ </t>
571
+ <t t-foreach="age_partner_config.line_ids" t-as="column_dynamic">
572
+ <div class="act_as_cell amount">
573
+ <span
574
+ t-esc="partner_cumul_line[column_dynamic]"
575
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
576
+ />
577
+ </div>
578
+ </t>
579
+ </div>
580
+ </div>
581
+ </template>
582
+ <template id="report_aged_partner_balance_account_ending_cumul">
583
+ <!-- Display ending balance line for account -->
584
+ <div class="act_as_table list_table" style="width: 100%;">
585
+ <div class="act_as_row lines" style="font-weight: bold;">
586
+ <t t-if="not show_move_line_details">
587
+ <!--## total-->
588
+ <div class="act_as_cell right" style="width: 32.52%;">Total</div>
589
+ <!--## amount_residual-->
566
590
  <div class="act_as_cell amount" style="width: 9.64%;">
567
591
  <span
568
- t-esc="account['120_days']"
592
+ t-esc="account['residual']"
569
593
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
570
594
  />
571
595
  </div>
572
- <!--## older-->
596
+ <!--## current-->
573
597
  <div class="act_as_cell amount" style="width: 9.64%;">
574
598
  <span
575
- t-esc="account['older']"
599
+ t-esc="account['current']"
576
600
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
577
601
  />
578
602
  </div>
603
+ <t t-if="not age_partner_config">
604
+ <!--## age_30_days-->
605
+ <div class="act_as_cell amount" style="width: 9.64%;">
606
+ <span
607
+ t-esc="account['30_days']"
608
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
609
+ />
610
+ </div>
611
+ <!--## age_60_days-->
612
+ <div class="act_as_cell amount" style="width: 9.64%;">
613
+ <span
614
+ t-esc="account['60_days']"
615
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
616
+ />
617
+ </div>
618
+ <!--## age_90_days-->
619
+ <div class="act_as_cell amount" style="width: 9.64%;">
620
+ <span
621
+ t-esc="account['90_days']"
622
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
623
+ />
624
+ </div>
625
+ <!--## age_120_days-->
626
+ <div class="act_as_cell amount" style="width: 9.64%;">
627
+ <span
628
+ t-esc="account['120_days']"
629
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
630
+ />
631
+ </div>
632
+ <!--## older-->
633
+ <div class="act_as_cell amount" style="width: 9.64%;">
634
+ <span
635
+ t-esc="account['older']"
636
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
637
+ />
638
+ </div>
639
+ </t>
640
+ <t t-foreach="age_partner_config.line_ids" t-as="column_dynamic">
641
+ <div class="act_as_cell amount">
642
+ <span
643
+ t-esc="account[column_dynamic]"
644
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
645
+ />
646
+ </div>
647
+ </t>
579
648
  </t>
580
649
  <t t-if="show_move_line_details">
581
650
  <!--## total-->
@@ -596,41 +665,51 @@
596
665
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
597
666
  />
598
667
  </div>
599
- <!--## age_30_days-->
600
- <div class="act_as_cell amount" style="width: 6.00%">
601
- <span
602
- t-esc="account['30_days']"
603
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
604
- />
605
- </div>
606
- <!--## age_60_days-->
607
- <div class="act_as_cell amount" style="width: 6.00%">
608
- <span
609
- t-esc="account['60_days']"
610
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
611
- />
612
- </div>
613
- <!--## age_90_days-->
614
- <div class="act_as_cell amount" style="width: 6.00%">
615
- <span
616
- t-esc="account['90_days']"
617
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
618
- />
619
- </div>
620
- <!--## age_120_days-->
621
- <div class="act_as_cell amount" style="width: 6.00%">
622
- <span
623
- t-esc="account['120_days']"
624
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
625
- />
626
- </div>
627
- <!--## older-->
628
- <div class="act_as_cell amount" style="width: 6.00%">
629
- <span
630
- t-esc="account['older']"
631
- t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
632
- />
633
- </div>
668
+ <t t-if="not age_partner_config">
669
+ <!--## age_30_days-->
670
+ <div class="act_as_cell amount" style="width: 6.00%">
671
+ <span
672
+ t-esc="account['30_days']"
673
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
674
+ />
675
+ </div>
676
+ <!--## age_60_days-->
677
+ <div class="act_as_cell amount" style="width: 6.00%">
678
+ <span
679
+ t-esc="account['60_days']"
680
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
681
+ />
682
+ </div>
683
+ <!--## age_90_days-->
684
+ <div class="act_as_cell amount" style="width: 6.00%">
685
+ <span
686
+ t-esc="account['90_days']"
687
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
688
+ />
689
+ </div>
690
+ <!--## age_120_days-->
691
+ <div class="act_as_cell amount" style="width: 6.00%">
692
+ <span
693
+ t-esc="account['120_days']"
694
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
695
+ />
696
+ </div>
697
+ <!--## older-->
698
+ <div class="act_as_cell amount" style="width: 6.00%">
699
+ <span
700
+ t-esc="account['older']"
701
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
702
+ />
703
+ </div>
704
+ </t>
705
+ <t t-foreach="age_partner_config.line_ids" t-as="column_dynamic">
706
+ <div class="act_as_cell amount">
707
+ <span
708
+ t-esc="account[column_dynamic]"
709
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
710
+ />
711
+ </div>
712
+ </t>
634
713
  </t>
635
714
  </div>
636
715
  <div class="act_as_row" style="font-weight: bold; font-style: italic;">
@@ -642,33 +721,42 @@
642
721
  <!--## current-->
643
722
  <div class="act_as_cell amount" style="width: 9.64%;">
644
723
  <span t-esc="account['percent_current']" />
645
- %
646
- </div>
647
- <!--## age_30_days-->
648
- <div class="act_as_cell amount" style="width: 9.64%;">
649
- <span t-esc="account['percent_30_days']" />
650
- %
651
- </div>
652
- <!--## age_60_days-->
653
- <div class="act_as_cell amount" style="width: 9.64%;">
654
- <span t-esc="account['percent_60_days']" />
655
- %
656
- </div>
657
- <!--## age_90_days-->
658
- <div class="act_as_cell amount" style="width: 9.64%;">
659
- <span t-esc="account['percent_90_days']" />
660
- %
661
- </div>
662
- <!--## age_120_days-->
663
- <div class="act_as_cell amount" style="width: 9.64%;">
664
- <span t-esc="account['percent_120_days']" />
665
- %
666
- </div>
667
- <!--## older-->
668
- <div class="act_as_cell amount" style="width: 9.64%;">
669
- <span t-esc="account['percent_older']" />
670
- %
671
- </div>
724
+ %
725
+ </div>
726
+ <t t-if="not age_partner_config">
727
+ <!--## age_30_days-->
728
+ <div class="act_as_cell amount" style="width: 9.64%;">
729
+ <span t-esc="account['percent_30_days']" />
730
+ %
731
+ </div>
732
+ <!--## age_60_days-->
733
+ <div class="act_as_cell amount" style="width: 9.64%;">
734
+ <span t-esc="account['percent_60_days']" />
735
+ %
736
+ </div>
737
+ <!--## age_90_days-->
738
+ <div class="act_as_cell amount" style="width: 9.64%;">
739
+ <span t-esc="account['percent_90_days']" />
740
+ %
741
+ </div>
742
+ <!--## age_120_days-->
743
+ <div class="act_as_cell amount" style="width: 9.64%;">
744
+ <span t-esc="account['percent_120_days']" />
745
+ %
746
+ </div>
747
+ <!--## older-->
748
+ <div class="act_as_cell amount" style="width: 9.64%;">
749
+ <span t-esc="account['percent_older']" />
750
+ %
751
+ </div>
752
+ </t>
753
+ <!--## current-->
754
+ <t t-foreach="age_partner_config.line_ids" t-as="column_dynamic">
755
+ <div class="act_as_cell amount">
756
+ <span t-esc="account['percent_'+str(column_dynamic.id)]" />
757
+ %
758
+ </div>
759
+ </t>
672
760
  </t>
673
761
  <t t-if="show_move_line_details">
674
762
  <!--## total-->
@@ -680,33 +768,42 @@
680
768
  <!--## current-->
681
769
  <div class="act_as_cell amount" style="width: 6.00%">
682
770
  <span t-esc="account['percent_current']" />
683
- %
684
- </div>
685
- <!--## age_30_days-->
686
- <div class="act_as_cell amount" style="width: 6.00%">
687
- <span t-esc="account['percent_30_days']" />
688
- %
689
- </div>
690
- <!--## age_60_days-->
691
- <div class="act_as_cell amount" style="width: 6.00%">
692
- <span t-esc="account['percent_60_days']" />
693
- %
694
- </div>
695
- <!--## age_90_days-->
696
- <div class="act_as_cell amount" style="width: 6.00%">
697
- <span t-esc="account['percent_90_days']" />
698
- %
699
- </div>
700
- <!--## age_120_days-->
701
- <div class="act_as_cell amount" style="width: 6.00%">
702
- <span t-esc="account['percent_120_days']" />
703
- %
704
- </div>
705
- <!--## older-->
706
- <div class="act_as_cell amount" style="width: 6.00%">
707
- <span t-esc="account['percent_older']" />
708
- %
709
- </div>
771
+ %
772
+ </div>
773
+ <t t-if="not age_partner_config">
774
+ <!--## age_30_days-->
775
+ <div class="act_as_cell amount" style="width: 6.00%">
776
+ <span t-esc="account['percent_30_days']" />
777
+ %
778
+ </div>
779
+ <!--## age_60_days-->
780
+ <div class="act_as_cell amount" style="width: 6.00%">
781
+ <span t-esc="account['percent_60_days']" />
782
+ %
783
+ </div>
784
+ <!--## age_90_days-->
785
+ <div class="act_as_cell amount" style="width: 6.00%">
786
+ <span t-esc="account['percent_90_days']" />
787
+ %
788
+ </div>
789
+ <!--## age_120_days-->
790
+ <div class="act_as_cell amount" style="width: 6.00%">
791
+ <span t-esc="account['percent_120_days']" />
792
+ %
793
+ </div>
794
+ <!--## older-->
795
+ <div class="act_as_cell amount" style="width: 6.00%">
796
+ <span t-esc="account['percent_older']" />
797
+ %
798
+ </div>
799
+ </t>
800
+ <!--## current-->
801
+ <t t-foreach="age_partner_config.line_ids" t-as="column_dynamic">
802
+ <div class="act_as_cell amount">
803
+ <span t-esc="account['percent_'+str(column_dynamic.id)]" />
804
+ %
805
+ </div>
806
+ </t>
710
807
  </t>
711
808
  </div>
712
809
  </div>