odoo-addon-account-financial-report 17.0.1.0.0.12__py3-none-any.whl → 17.0.1.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of odoo-addon-account-financial-report might be problematic. Click here for more details.

Files changed (28) hide show
  1. odoo/addons/account_financial_report/README.rst +38 -1
  2. odoo/addons/account_financial_report/__manifest__.py +4 -1
  3. odoo/addons/account_financial_report/i18n/account_financial_report.pot +111 -13
  4. odoo/addons/account_financial_report/i18n/es.po +112 -3
  5. odoo/addons/account_financial_report/i18n/tr.po +120 -120
  6. odoo/addons/account_financial_report/models/__init__.py +2 -0
  7. odoo/addons/account_financial_report/models/account_age_report_configuration.py +47 -0
  8. odoo/addons/account_financial_report/models/res_config_settings.py +14 -0
  9. odoo/addons/account_financial_report/readme/CONFIGURE.md +26 -0
  10. odoo/addons/account_financial_report/readme/CONTRIBUTORS.md +1 -0
  11. odoo/addons/account_financial_report/readme/DESCRIPTION.md +4 -0
  12. odoo/addons/account_financial_report/report/aged_partner_balance.py +79 -3
  13. odoo/addons/account_financial_report/report/aged_partner_balance_xlsx.py +144 -104
  14. odoo/addons/account_financial_report/report/templates/aged_partner_balance.xml +428 -333
  15. odoo/addons/account_financial_report/security/ir.model.access.csv +2 -0
  16. odoo/addons/account_financial_report/security/security.xml +8 -0
  17. odoo/addons/account_financial_report/static/description/index.html +47 -21
  18. odoo/addons/account_financial_report/tests/__init__.py +1 -0
  19. odoo/addons/account_financial_report/tests/test_age_report_configuration.py +42 -0
  20. odoo/addons/account_financial_report/tests/test_aged_partner_balance.py +84 -5
  21. odoo/addons/account_financial_report/view/account_age_report_configuration_views.xml +41 -0
  22. odoo/addons/account_financial_report/view/res_config_settings_views.xml +51 -0
  23. odoo/addons/account_financial_report/wizard/aged_partner_balance_wizard.py +4 -0
  24. odoo/addons/account_financial_report/wizard/aged_partner_balance_wizard_view.xml +2 -3
  25. {odoo_addon_account_financial_report-17.0.1.0.0.12.dist-info → odoo_addon_account_financial_report-17.0.1.1.0.dist-info}/METADATA +39 -2
  26. {odoo_addon_account_financial_report-17.0.1.0.0.12.dist-info → odoo_addon_account_financial_report-17.0.1.1.0.dist-info}/RECORD +28 -21
  27. {odoo_addon_account_financial_report-17.0.1.0.0.12.dist-info → odoo_addon_account_financial_report-17.0.1.1.0.dist-info}/WHEEL +0 -0
  28. {odoo_addon_account_financial_report-17.0.1.0.0.12.dist-info → odoo_addon_account_financial_report-17.0.1.1.0.dist-info}/top_level.txt +0 -0
@@ -116,16 +116,22 @@
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"><span t-out="column_dynamic.name" /></div>
134
+ </t>
129
135
  </div>
130
136
  </div>
131
137
  </template>
@@ -143,48 +149,58 @@
143
149
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
144
150
  />
145
151
  </div>
146
- <!--## current-->
152
+ <!--## current-->
147
153
  <div class="act_as_cell amount">
148
- <span
154
+ <span
149
155
  t-esc="partner['current']"
150
156
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
151
157
  />
152
158
  </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>
159
+ <t t-if="not age_partner_config">
160
+ <!--## age_30_days-->
161
+ <div class="act_as_cell amount">
162
+ <span
163
+ t-esc="partner['30_days']"
164
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
165
+ />
166
+ </div>
167
+ <!--## age_60_days-->
168
+ <div class="act_as_cell amount">
169
+ <span
170
+ t-esc="partner['60_days']"
171
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
172
+ />
173
+ </div>
174
+ <!--## age_90_days-->
175
+ <div class="act_as_cell amount">
176
+ <span
177
+ t-esc="partner['90_days']"
178
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
179
+ />
180
+ </div>
181
+ <!--## age_120_days-->
182
+ <div class="act_as_cell amount">
183
+ <span
184
+ t-esc="partner['120_days']"
185
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
186
+ />
187
+ </div>
188
+ <!--## older-->
189
+ <div class="act_as_cell amount">
190
+ <span
191
+ t-esc="partner['older']"
192
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
193
+ />
194
+ </div>
195
+ </t>
196
+ <t t-foreach="age_partner_config.line_ids" t-as="column_dynamic">
197
+ <div class="act_as_cell amount">
198
+ <span
199
+ t-out="partner[column_dynamic]"
200
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
201
+ />
202
+ </div>
203
+ </t>
188
204
  </div>
189
205
  </template>
190
206
  <template id="report_aged_partner_balance_move_lines">
@@ -218,28 +234,36 @@
218
234
  <div class="act_as_cell" style="width: 6.00%;">Residual</div>
219
235
  <!--## current-->
220
236
  <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>
237
+ <t t-if="not age_partner_config">
238
+ <!--## age_30_days-->
239
+ <div class="act_as_cell" style="width: 6.00%;">
240
+ Age ≤ 30
241
+ d.
242
+ </div>
243
+ <!--## age_60_days-->
244
+ <div class="act_as_cell" style="width: 6.00%;">
245
+ Age ≤ 60
246
+ d.
247
+ </div>
248
+ <!--## age_90_days-->
249
+ <div class="act_as_cell" style="width: 6.00%;">
250
+ Age ≤ 90
251
+ d.
252
+ </div>
253
+ <!--## age_120_days-->
254
+ <div class="act_as_cell" style="width: 6.00%;">
255
+ Age ≤ 120
256
+ d.
257
+ </div>
258
+ <!--## older-->
259
+ <div class="act_as_cell" style="width: 6.00%;">Older</div>
260
+ </t>
261
+ <!--## current-->
262
+ <t t-foreach="age_partner_config.line_ids" t-as="column_dynamic">
263
+ <div class="act_as_cell">
264
+ <span t-esc="column_dynamic.name" />
265
+ </div>
266
+ </t>
243
267
  </div>
244
268
  </div>
245
269
  <!-- Display each move lines -->
@@ -333,126 +357,149 @@
333
357
  />
334
358
  </span>
335
359
  </div>
336
- <!--## current-->
337
- <div class="act_as_cell amount">
338
- <t t-if="line['current'] == 0">
339
- <span
360
+ <!--## current-->
361
+ <div class="act_as_cell amount">
362
+ <t t-if="line['current'] == 0">
363
+ <span
340
364
  t-esc="line['current']"
341
365
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
342
366
  />
343
- </t>
344
- <t t-else="">
345
- <span
367
+ </t>
368
+ <t t-else="">
369
+ <span
346
370
  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)]"
347
371
  res-model="account.move.line"
348
372
  >
349
- <t
373
+ <t
350
374
  t-out="line['current']"
351
375
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
352
376
  />
353
- </span>
354
- </t>
355
- </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']"
377
+ </span>
378
+ </t>
379
+ </div>
380
+ <t t-if="not age_partner_config">
381
+ <!--## age_30_days-->
382
+ <div class="act_as_cell amount">
383
+ <t t-if="line['30_days'] == 0">
384
+ <span
385
+ t-esc="line['30_days']"
371
386
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
372
387
  />
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']"
388
+ </t>
389
+ <t t-else="">
390
+ <span
391
+ 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)]"
392
+ res-model="account.move.line"
393
+ >
394
+ <t
395
+ t-out="line['30_days']"
396
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
397
+ />
398
+ </span>
399
+ </t>
400
+ </div>
401
+ <!--## age_60_days-->
402
+ <div class="act_as_cell amount">
403
+ <t t-if="line['60_days'] == 0">
404
+ <span
405
+ t-esc="line['60_days']"
391
406
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
392
407
  />
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']"
408
+ </t>
409
+ <t t-else="">
410
+ <span
411
+ 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)]"
412
+ res-model="account.move.line"
413
+ >
414
+ <t
415
+ t-out="line['60_days']"
416
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
417
+ />
418
+ </span>
419
+ </t>
420
+ </div>
421
+ <!--## age_90_days-->
422
+ <div class="act_as_cell amount">
423
+ <t t-if="line['90_days'] == 0">
424
+ <span
425
+ t-esc="line['90_days']"
411
426
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
412
427
  />
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']"
428
+ </t>
429
+ <t t-else="">
430
+ <span
431
+ 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)]"
432
+ res-model="account.move.line"
433
+ >
434
+ <t
435
+ t-out="line['90_days']"
436
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
437
+ />
438
+ </span>
439
+ </t>
440
+ </div>
441
+ <!--## age_120_days-->
442
+ <div class="act_as_cell amount">
443
+ <t t-if="line['120_days'] == 0">
444
+ <span
445
+ t-esc="line['120_days']"
431
446
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
432
447
  />
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']"
448
+ </t>
449
+ <t t-else="">
450
+ <span
451
+ 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)]"
452
+ res-model="account.move.line"
453
+ >
454
+ <t
455
+ t-out="line['120_days']"
456
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
457
+ />
458
+ </span>
459
+ </t>
460
+ </div>
461
+ <!--## older-->
462
+ <div class="act_as_cell amount">
463
+ <t t-if="line['older'] == 0">
464
+ <span
465
+ t-esc="line['older']"
451
466
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
452
467
  />
453
- </span>
454
- </t>
455
- </div>
468
+ </t>
469
+ <t t-else="">
470
+ <span
471
+ 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)]"
472
+ res-model="account.move.line"
473
+ >
474
+ <t
475
+ t-out="line['older']"
476
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
477
+ />
478
+ </span>
479
+ </t>
480
+ </div>
481
+ </t>
482
+ <t t-foreach="age_partner_config.line_ids" t-as="column_dynamic">
483
+ <div class="act_as_cell amount">
484
+ <t t-if="line[column_dynamic] == 0">
485
+ <span
486
+ t-esc="line[column_dynamic]"
487
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
488
+ />
489
+ </t>
490
+ <t t-else="">
491
+ <span
492
+ 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)]"
493
+ res-model="account.move.line"
494
+ >
495
+ <t
496
+ t-out="line[column_dynamic]"
497
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
498
+ />
499
+ </span>
500
+ </t>
501
+ </div>
502
+ </t>
456
503
  </div>
457
504
  </t>
458
505
  </div>
@@ -475,107 +522,127 @@
475
522
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
476
523
  />
477
524
  </div>
478
- <!--## current-->
479
- <div class="act_as_cell amount" style="width: 6.00%;">
480
- <span
525
+ <!--## current-->
526
+ <div class="act_as_cell amount" style="width: 6.00%;">
527
+ <span
481
528
  t-esc="partner_cumul_line['current']"
482
529
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
483
530
  />
484
- </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%;">
531
+ </div>
532
+ <t t-if="not age_partner_config">
533
+ <!--## age_30_days-->
534
+ <div class="act_as_cell amount" style="width: 6.00%;">
532
535
  <span
533
- t-esc="account['residual']"
536
+ t-esc="partner_cumul_line['30_days']"
534
537
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
535
538
  />
536
539
  </div>
537
- <!--## current-->
538
- <div class="act_as_cell amount" style="width: 9.64%;">
540
+ <!--## age_60_days-->
541
+ <div class="act_as_cell amount" style="width: 6.00%;">
539
542
  <span
540
- t-esc="account['current']"
543
+ t-esc="partner_cumul_line['60_days']"
541
544
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
542
545
  />
543
546
  </div>
544
- <!--## age_30_days-->
545
- <div class="act_as_cell amount" style="width: 9.64%;">
547
+ <!--## age_90_days-->
548
+ <div class="act_as_cell amount" style="width: 6.00%;">
546
549
  <span
547
- t-esc="account['30_days']"
550
+ t-esc="partner_cumul_line['90_days']"
548
551
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
549
552
  />
550
553
  </div>
551
- <!--## age_60_days-->
552
- <div class="act_as_cell amount" style="width: 9.64%;">
554
+ <!--## age_120_days-->
555
+ <div class="act_as_cell amount" style="width: 6.00%;">
553
556
  <span
554
- t-esc="account['60_days']"
557
+ t-esc="partner_cumul_line['120_days']"
555
558
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
556
559
  />
557
560
  </div>
558
- <!--## age_90_days-->
559
- <div class="act_as_cell amount" style="width: 9.64%;">
561
+ <!--## older-->
562
+ <div class="act_as_cell amount" style="width: 6.00%;">
560
563
  <span
561
- t-esc="account['90_days']"
564
+ t-esc="partner_cumul_line['older']"
562
565
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
563
566
  />
564
567
  </div>
565
- <!--## age_120_days-->
566
- <div class="act_as_cell amount" style="width: 9.64%;">
568
+ </t>
569
+ <t t-foreach="age_partner_config.line_ids" t-as="column_dynamic">
570
+ <div class="act_as_cell amount">
567
571
  <span
568
- t-esc="account['120_days']"
572
+ t-esc="partner_cumul_line[column_dynamic]"
569
573
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
570
574
  />
571
575
  </div>
572
- <!--## older-->
576
+ </t>
577
+ </div>
578
+ </div>
579
+ </template>
580
+ <template id="report_aged_partner_balance_account_ending_cumul">
581
+ <!-- Display ending balance line for account -->
582
+ <div class="act_as_table list_table" style="width: 100%;">
583
+ <div class="act_as_row lines" style="font-weight: bold;">
584
+ <t t-if="not show_move_line_details">
585
+ <!--## total-->
586
+ <div class="act_as_cell right" style="width: 32.52%;">Total</div>
587
+ <!--## amount_residual-->
573
588
  <div class="act_as_cell amount" style="width: 9.64%;">
574
589
  <span
575
- t-esc="account['older']"
590
+ t-esc="account['residual']"
576
591
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
577
592
  />
578
593
  </div>
594
+ <!--## current-->
595
+ <div class="act_as_cell amount" style="width: 9.64%;">
596
+ <span
597
+ t-esc="account['current']"
598
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
599
+ />
600
+ </div>
601
+ <t t-if="not age_partner_config">
602
+ <!--## age_30_days-->
603
+ <div class="act_as_cell amount" style="width: 9.64%;">
604
+ <span
605
+ t-esc="account['30_days']"
606
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
607
+ />
608
+ </div>
609
+ <!--## age_60_days-->
610
+ <div class="act_as_cell amount" style="width: 9.64%;">
611
+ <span
612
+ t-esc="account['60_days']"
613
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
614
+ />
615
+ </div>
616
+ <!--## age_90_days-->
617
+ <div class="act_as_cell amount" style="width: 9.64%;">
618
+ <span
619
+ t-esc="account['90_days']"
620
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
621
+ />
622
+ </div>
623
+ <!--## age_120_days-->
624
+ <div class="act_as_cell amount" style="width: 9.64%;">
625
+ <span
626
+ t-esc="account['120_days']"
627
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
628
+ />
629
+ </div>
630
+ <!--## older-->
631
+ <div class="act_as_cell amount" style="width: 9.64%;">
632
+ <span
633
+ t-esc="account['older']"
634
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
635
+ />
636
+ </div>
637
+ </t>
638
+ <t t-foreach="age_partner_config.line_ids" t-as="column_dynamic">
639
+ <div class="act_as_cell amount">
640
+ <span
641
+ t-esc="account[column_dynamic]"
642
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
643
+ />
644
+ </div>
645
+ </t>
579
646
  </t>
580
647
  <t t-if="show_move_line_details">
581
648
  <!--## total-->
@@ -589,48 +656,58 @@
589
656
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
590
657
  />
591
658
  </div>
592
- <!--## current-->
593
- <div class="act_as_cell amount" style="width: 6.00%">
594
- <span
659
+ <!--## current-->
660
+ <div class="act_as_cell amount" style="width: 6.00%">
661
+ <span
595
662
  t-esc="account['current']"
596
663
  t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
597
664
  />
598
- </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>
665
+ </div>
666
+ <t t-if="not age_partner_config">
667
+ <!--## age_30_days-->
668
+ <div class="act_as_cell amount" style="width: 6.00%">
669
+ <span
670
+ t-esc="account['30_days']"
671
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
672
+ />
673
+ </div>
674
+ <!--## age_60_days-->
675
+ <div class="act_as_cell amount" style="width: 6.00%">
676
+ <span
677
+ t-esc="account['60_days']"
678
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
679
+ />
680
+ </div>
681
+ <!--## age_90_days-->
682
+ <div class="act_as_cell amount" style="width: 6.00%">
683
+ <span
684
+ t-esc="account['90_days']"
685
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
686
+ />
687
+ </div>
688
+ <!--## age_120_days-->
689
+ <div class="act_as_cell amount" style="width: 6.00%">
690
+ <span
691
+ t-esc="account['120_days']"
692
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
693
+ />
694
+ </div>
695
+ <!--## older-->
696
+ <div class="act_as_cell amount" style="width: 6.00%">
697
+ <span
698
+ t-esc="account['older']"
699
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
700
+ />
701
+ </div>
702
+ </t>
703
+ <t t-foreach="age_partner_config.line_ids" t-as="column_dynamic">
704
+ <div class="act_as_cell amount">
705
+ <span
706
+ t-esc="account[column_dynamic]"
707
+ t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
708
+ />
709
+ </div>
710
+ </t>
634
711
  </t>
635
712
  </div>
636
713
  <div class="act_as_row" style="font-weight: bold; font-style: italic;">
@@ -642,33 +719,42 @@
642
719
  <!--## current-->
643
720
  <div class="act_as_cell amount" style="width: 9.64%;">
644
721
  <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>
722
+ %
723
+ </div>
724
+ <t t-if="not age_partner_config">
725
+ <!--## age_30_days-->
726
+ <div class="act_as_cell amount" style="width: 9.64%;">
727
+ <span t-esc="account['percent_30_days']" />
728
+ %
729
+ </div>
730
+ <!--## age_60_days-->
731
+ <div class="act_as_cell amount" style="width: 9.64%;">
732
+ <span t-esc="account['percent_60_days']" />
733
+ %
734
+ </div>
735
+ <!--## age_90_days-->
736
+ <div class="act_as_cell amount" style="width: 9.64%;">
737
+ <span t-esc="account['percent_90_days']" />
738
+ %
739
+ </div>
740
+ <!--## age_120_days-->
741
+ <div class="act_as_cell amount" style="width: 9.64%;">
742
+ <span t-esc="account['percent_120_days']" />
743
+ %
744
+ </div>
745
+ <!--## older-->
746
+ <div class="act_as_cell amount" style="width: 9.64%;">
747
+ <span t-esc="account['percent_older']" />
748
+ %
749
+ </div>
750
+ </t>
751
+ <!--## current-->
752
+ <t t-foreach="age_partner_config.line_ids" t-as="column_dynamic">
753
+ <div class="act_as_cell amount">
754
+ <span t-esc="account['percent_'+str(column_dynamic.id)]" />
755
+ %
756
+ </div>
757
+ </t>
672
758
  </t>
673
759
  <t t-if="show_move_line_details">
674
760
  <!--## total-->
@@ -680,34 +766,43 @@
680
766
  <!--## current-->
681
767
  <div class="act_as_cell amount" style="width: 6.00%">
682
768
  <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>
710
- </t>
769
+ %
770
+ </div>
771
+ <t t-if="not age_partner_config">
772
+ <!--## age_30_days-->
773
+ <div class="act_as_cell amount" style="width: 6.00%">
774
+ <span t-esc="account['percent_30_days']" />
775
+ %
776
+ </div>
777
+ <!--## age_60_days-->
778
+ <div class="act_as_cell amount" style="width: 6.00%">
779
+ <span t-esc="account['percent_60_days']" />
780
+ %
781
+ </div>
782
+ <!--## age_90_days-->
783
+ <div class="act_as_cell amount" style="width: 6.00%">
784
+ <span t-esc="account['percent_90_days']" />
785
+ %
786
+ </div>
787
+ <!--## age_120_days-->
788
+ <div class="act_as_cell amount" style="width: 6.00%">
789
+ <span t-esc="account['percent_120_days']" />
790
+ %
791
+ </div>
792
+ <!--## older-->
793
+ <div class="act_as_cell amount" style="width: 6.00%">
794
+ <span t-esc="account['percent_older']" />
795
+ %
796
+ </div>
797
+ </t>
798
+ <!--## current-->
799
+ <t t-foreach="age_partner_config.line_ids" t-as="column_dynamic">
800
+ <div class="act_as_cell amount">
801
+ <span t-esc="account['percent_'+str(column_dynamic.id)]" />
802
+ %
803
+ </div>
804
+ </t>
805
+ </t>
711
806
  </div>
712
807
  </div>
713
808
  </template>