odoo-addon-account-financial-report 17.0.1.7.0__py3-none-any.whl → 17.0.1.8.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 (53) hide show
  1. odoo/addons/account_financial_report/README.rst +1 -1
  2. odoo/addons/account_financial_report/__manifest__.py +1 -1
  3. odoo/addons/account_financial_report/i18n/account_financial_report.pot +16 -0
  4. odoo/addons/account_financial_report/i18n/ar.po +15 -0
  5. odoo/addons/account_financial_report/i18n/ca.po +15 -0
  6. odoo/addons/account_financial_report/i18n/de.po +15 -0
  7. odoo/addons/account_financial_report/i18n/es.po +2 -1
  8. odoo/addons/account_financial_report/i18n/es_AR.po +15 -0
  9. odoo/addons/account_financial_report/i18n/es_MX.po +15 -0
  10. odoo/addons/account_financial_report/i18n/fr.po +15 -0
  11. odoo/addons/account_financial_report/i18n/fr_CH.po +15 -0
  12. odoo/addons/account_financial_report/i18n/hr.po +15 -0
  13. odoo/addons/account_financial_report/i18n/hr_HR.po +15 -0
  14. odoo/addons/account_financial_report/i18n/it.po +16 -1
  15. odoo/addons/account_financial_report/i18n/ja.po +15 -0
  16. odoo/addons/account_financial_report/i18n/nl.po +15 -0
  17. odoo/addons/account_financial_report/i18n/nl_NL.po +15 -0
  18. odoo/addons/account_financial_report/i18n/pt.po +15 -0
  19. odoo/addons/account_financial_report/i18n/pt_BR.po +15 -0
  20. odoo/addons/account_financial_report/i18n/ro.po +15 -0
  21. odoo/addons/account_financial_report/i18n/sv.po +15 -0
  22. odoo/addons/account_financial_report/i18n/tr.po +15 -0
  23. odoo/addons/account_financial_report/report/abstract_report.py +6 -0
  24. odoo/addons/account_financial_report/report/aged_partner_balance.py +18 -12
  25. odoo/addons/account_financial_report/report/general_ledger.py +30 -26
  26. odoo/addons/account_financial_report/report/journal_ledger.py +27 -22
  27. odoo/addons/account_financial_report/report/open_items.py +24 -19
  28. odoo/addons/account_financial_report/report/templates/general_ledger.xml +6 -2
  29. odoo/addons/account_financial_report/report/templates/journal_ledger.xml +5 -2
  30. odoo/addons/account_financial_report/report/templates/open_items.xml +1 -1
  31. odoo/addons/account_financial_report/report/trial_balance.py +30 -26
  32. odoo/addons/account_financial_report/report/vat_report.py +17 -12
  33. odoo/addons/account_financial_report/static/description/index.html +1 -1
  34. odoo/addons/account_financial_report/tests/test_aged_partner_balance.py +4 -4
  35. odoo/addons/account_financial_report/tests/test_general_ledger.py +1 -1
  36. odoo/addons/account_financial_report/tests/test_journal_ledger.py +5 -5
  37. odoo/addons/account_financial_report/tests/test_open_items.py +1 -1
  38. odoo/addons/account_financial_report/tests/test_trial_balance.py +4 -4
  39. odoo/addons/account_financial_report/tests/test_vat_report.py +1 -1
  40. odoo/addons/account_financial_report/wizard/abstract_wizard.py +23 -0
  41. odoo/addons/account_financial_report/wizard/aged_partner_balance_wizard.py +7 -1
  42. odoo/addons/account_financial_report/wizard/general_ledger_wizard.py +7 -1
  43. odoo/addons/account_financial_report/wizard/general_ledger_wizard_view.xml +5 -0
  44. odoo/addons/account_financial_report/wizard/journal_ledger_wizard.py +7 -1
  45. odoo/addons/account_financial_report/wizard/journal_ledger_wizard_view.xml +1 -0
  46. odoo/addons/account_financial_report/wizard/open_items_wizard.py +7 -1
  47. odoo/addons/account_financial_report/wizard/open_items_wizard_view.xml +1 -0
  48. odoo/addons/account_financial_report/wizard/trial_balance_wizard.py +7 -1
  49. odoo/addons/account_financial_report/wizard/vat_report_wizard.py +7 -1
  50. {odoo_addon_account_financial_report-17.0.1.7.0.dist-info → odoo_addon_account_financial_report-17.0.1.8.0.dist-info}/METADATA +2 -2
  51. {odoo_addon_account_financial_report-17.0.1.7.0.dist-info → odoo_addon_account_financial_report-17.0.1.8.0.dist-info}/RECORD +53 -53
  52. {odoo_addon_account_financial_report-17.0.1.7.0.dist-info → odoo_addon_account_financial_report-17.0.1.8.0.dist-info}/WHEEL +0 -0
  53. {odoo_addon_account_financial_report-17.0.1.7.0.dist-info → odoo_addon_account_financial_report-17.0.1.8.0.dist-info}/top_level.txt +0 -0
@@ -956,6 +956,7 @@ msgstr ""
956
956
 
957
957
  #. module: account_financial_report
958
958
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__grouped_by
959
+ #: model:ir.model.fields,field_description:account_financial_report.field_open_items_report_wizard__grouped_by
959
960
  #: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard__grouped_by
960
961
  msgid "Grouped By"
961
962
  msgstr ""
@@ -1177,11 +1178,19 @@ msgstr ""
1177
1178
  #. odoo-python
1178
1179
  #: code:addons/account_financial_report/report/general_ledger.py:0
1179
1180
  #: code:addons/account_financial_report/report/open_items.py:0
1181
+ #: code:addons/account_financial_report/report/open_items_xlsx.py:0
1180
1182
  #: code:addons/account_financial_report/report/trial_balance.py:0
1181
1183
  #, python-format
1182
1184
  msgid "Missing Partner"
1183
1185
  msgstr ""
1184
1186
 
1187
+ #. module: account_financial_report
1188
+ #. odoo-python
1189
+ #: code:addons/account_financial_report/report/open_items.py:0
1190
+ #, python-format
1191
+ msgid "Missing Salesperson"
1192
+ msgstr ""
1193
+
1185
1194
  #. module: account_financial_report
1186
1195
  #: model:ir.model,name:account_financial_report.model_account_age_report_configuration_line
1187
1196
  msgid "Model to set interval lines for Age partner balance report"
@@ -1389,6 +1398,11 @@ msgstr ""
1389
1398
  msgid "Partner Initial balance"
1390
1399
  msgstr ""
1391
1400
 
1401
+ #. module: account_financial_report
1402
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__open_items_report_wizard__grouped_by__salesperson
1403
+ msgid "Partner Salesperson"
1404
+ msgstr ""
1405
+
1392
1406
  #. module: account_financial_report
1393
1407
  #. odoo-python
1394
1408
  #: code:addons/account_financial_report/report/aged_partner_balance_xlsx.py:0
@@ -1413,6 +1427,7 @@ msgstr ""
1413
1427
 
1414
1428
  #. module: account_financial_report
1415
1429
  #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__partners
1430
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__open_items_report_wizard__grouped_by__partners
1416
1431
  msgid "Partners"
1417
1432
  msgstr ""
1418
1433
 
@@ -962,6 +962,7 @@ msgstr "Agrupar movimentos por"
962
962
 
963
963
  #. module: account_financial_report
964
964
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__grouped_by
965
+ #: model:ir.model.fields,field_description:account_financial_report.field_open_items_report_wizard__grouped_by
965
966
  #: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard__grouped_by
966
967
  msgid "Grouped By"
967
968
  msgstr "Agrupar Por"
@@ -1189,11 +1190,19 @@ msgstr "Linha"
1189
1190
  #. odoo-python
1190
1191
  #: code:addons/account_financial_report/report/general_ledger.py:0
1191
1192
  #: code:addons/account_financial_report/report/open_items.py:0
1193
+ #: code:addons/account_financial_report/report/open_items_xlsx.py:0
1192
1194
  #: code:addons/account_financial_report/report/trial_balance.py:0
1193
1195
  #, python-format
1194
1196
  msgid "Missing Partner"
1195
1197
  msgstr "Parceiro em Falta"
1196
1198
 
1199
+ #. module: account_financial_report
1200
+ #. odoo-python
1201
+ #: code:addons/account_financial_report/report/open_items.py:0
1202
+ #, python-format
1203
+ msgid "Missing Salesperson"
1204
+ msgstr ""
1205
+
1197
1206
  #. module: account_financial_report
1198
1207
  #: model:ir.model,name:account_financial_report.model_account_age_report_configuration_line
1199
1208
  msgid "Model to set interval lines for Age partner balance report"
@@ -1406,6 +1415,11 @@ msgstr ""
1406
1415
  msgid "Partner Initial balance"
1407
1416
  msgstr "Saldo inicial de Parceiro"
1408
1417
 
1418
+ #. module: account_financial_report
1419
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__open_items_report_wizard__grouped_by__salesperson
1420
+ msgid "Partner Salesperson"
1421
+ msgstr ""
1422
+
1409
1423
  #. module: account_financial_report
1410
1424
  #. odoo-python
1411
1425
  #: code:addons/account_financial_report/report/aged_partner_balance_xlsx.py:0
@@ -1430,6 +1444,7 @@ msgstr "Saldo inicial do parceiro"
1430
1444
 
1431
1445
  #. module: account_financial_report
1432
1446
  #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__partners
1447
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__open_items_report_wizard__grouped_by__partners
1433
1448
  msgid "Partners"
1434
1449
  msgstr "Parceiros"
1435
1450
 
@@ -959,6 +959,7 @@ msgstr "Agrupar lan??amentos por"
959
959
 
960
960
  #. module: account_financial_report
961
961
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__grouped_by
962
+ #: model:ir.model.fields,field_description:account_financial_report.field_open_items_report_wizard__grouped_by
962
963
  #: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard__grouped_by
963
964
  msgid "Grouped By"
964
965
  msgstr "Agrupado Por"
@@ -1186,11 +1187,19 @@ msgstr "Linha"
1186
1187
  #. odoo-python
1187
1188
  #: code:addons/account_financial_report/report/general_ledger.py:0
1188
1189
  #: code:addons/account_financial_report/report/open_items.py:0
1190
+ #: code:addons/account_financial_report/report/open_items_xlsx.py:0
1189
1191
  #: code:addons/account_financial_report/report/trial_balance.py:0
1190
1192
  #, python-format
1191
1193
  msgid "Missing Partner"
1192
1194
  msgstr ""
1193
1195
 
1196
+ #. module: account_financial_report
1197
+ #. odoo-python
1198
+ #: code:addons/account_financial_report/report/open_items.py:0
1199
+ #, python-format
1200
+ msgid "Missing Salesperson"
1201
+ msgstr ""
1202
+
1194
1203
  #. module: account_financial_report
1195
1204
  #: model:ir.model,name:account_financial_report.model_account_age_report_configuration_line
1196
1205
  msgid "Model to set interval lines for Age partner balance report"
@@ -1400,6 +1409,11 @@ msgstr ""
1400
1409
  msgid "Partner Initial balance"
1401
1410
  msgstr "Saldo inicial do parceiro"
1402
1411
 
1412
+ #. module: account_financial_report
1413
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__open_items_report_wizard__grouped_by__salesperson
1414
+ msgid "Partner Salesperson"
1415
+ msgstr ""
1416
+
1403
1417
  #. module: account_financial_report
1404
1418
  #. odoo-python
1405
1419
  #: code:addons/account_financial_report/report/aged_partner_balance_xlsx.py:0
@@ -1424,6 +1438,7 @@ msgstr "Saldo inicial do Parceiro"
1424
1438
 
1425
1439
  #. module: account_financial_report
1426
1440
  #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__partners
1441
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__open_items_report_wizard__grouped_by__partners
1427
1442
  msgid "Partners"
1428
1443
  msgstr "Parceiros"
1429
1444
 
@@ -959,6 +959,7 @@ msgstr "Intr??ri de grup dup??"
959
959
 
960
960
  #. module: account_financial_report
961
961
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__grouped_by
962
+ #: model:ir.model.fields,field_description:account_financial_report.field_open_items_report_wizard__grouped_by
962
963
  #: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard__grouped_by
963
964
  msgid "Grouped By"
964
965
  msgstr ""
@@ -1186,11 +1187,19 @@ msgstr "Linie"
1186
1187
  #. odoo-python
1187
1188
  #: code:addons/account_financial_report/report/general_ledger.py:0
1188
1189
  #: code:addons/account_financial_report/report/open_items.py:0
1190
+ #: code:addons/account_financial_report/report/open_items_xlsx.py:0
1189
1191
  #: code:addons/account_financial_report/report/trial_balance.py:0
1190
1192
  #, python-format
1191
1193
  msgid "Missing Partner"
1192
1194
  msgstr ""
1193
1195
 
1196
+ #. module: account_financial_report
1197
+ #. odoo-python
1198
+ #: code:addons/account_financial_report/report/open_items.py:0
1199
+ #, python-format
1200
+ msgid "Missing Salesperson"
1201
+ msgstr ""
1202
+
1194
1203
  #. module: account_financial_report
1195
1204
  #: model:ir.model,name:account_financial_report.model_account_age_report_configuration_line
1196
1205
  msgid "Model to set interval lines for Age partner balance report"
@@ -1398,6 +1407,11 @@ msgstr ""
1398
1407
  msgid "Partner Initial balance"
1399
1408
  msgstr "Sold ini??ial partener"
1400
1409
 
1410
+ #. module: account_financial_report
1411
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__open_items_report_wizard__grouped_by__salesperson
1412
+ msgid "Partner Salesperson"
1413
+ msgstr ""
1414
+
1401
1415
  #. module: account_financial_report
1402
1416
  #. odoo-python
1403
1417
  #: code:addons/account_financial_report/report/aged_partner_balance_xlsx.py:0
@@ -1422,6 +1436,7 @@ msgstr ""
1422
1436
 
1423
1437
  #. module: account_financial_report
1424
1438
  #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__partners
1439
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__open_items_report_wizard__grouped_by__partners
1425
1440
  msgid "Partners"
1426
1441
  msgstr ""
1427
1442
 
@@ -967,6 +967,7 @@ msgstr "Gruppinlägg efter"
967
967
 
968
968
  #. module: account_financial_report
969
969
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__grouped_by
970
+ #: model:ir.model.fields,field_description:account_financial_report.field_open_items_report_wizard__grouped_by
970
971
  #: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard__grouped_by
971
972
  msgid "Grouped By"
972
973
  msgstr "Grupperad efter"
@@ -1195,11 +1196,19 @@ msgstr "Linje"
1195
1196
  #. odoo-python
1196
1197
  #: code:addons/account_financial_report/report/general_ledger.py:0
1197
1198
  #: code:addons/account_financial_report/report/open_items.py:0
1199
+ #: code:addons/account_financial_report/report/open_items_xlsx.py:0
1198
1200
  #: code:addons/account_financial_report/report/trial_balance.py:0
1199
1201
  #, python-format
1200
1202
  msgid "Missing Partner"
1201
1203
  msgstr "Saknad partner"
1202
1204
 
1205
+ #. module: account_financial_report
1206
+ #. odoo-python
1207
+ #: code:addons/account_financial_report/report/open_items.py:0
1208
+ #, python-format
1209
+ msgid "Missing Salesperson"
1210
+ msgstr ""
1211
+
1203
1212
  #. module: account_financial_report
1204
1213
  #: model:ir.model,name:account_financial_report.model_account_age_report_configuration_line
1205
1214
  msgid "Model to set interval lines for Age partner balance report"
@@ -1409,6 +1418,11 @@ msgstr ""
1409
1418
  msgid "Partner Initial balance"
1410
1419
  msgstr "Kund initial balans"
1411
1420
 
1421
+ #. module: account_financial_report
1422
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__open_items_report_wizard__grouped_by__salesperson
1423
+ msgid "Partner Salesperson"
1424
+ msgstr ""
1425
+
1412
1426
  #. module: account_financial_report
1413
1427
  #. odoo-python
1414
1428
  #: code:addons/account_financial_report/report/aged_partner_balance_xlsx.py:0
@@ -1433,6 +1447,7 @@ msgstr "Partnerns initiala balans"
1433
1447
 
1434
1448
  #. module: account_financial_report
1435
1449
  #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__partners
1450
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__open_items_report_wizard__grouped_by__partners
1436
1451
  msgid "Partners"
1437
1452
  msgstr "Partner"
1438
1453
 
@@ -958,6 +958,7 @@ msgstr ""
958
958
 
959
959
  #. module: account_financial_report
960
960
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__grouped_by
961
+ #: model:ir.model.fields,field_description:account_financial_report.field_open_items_report_wizard__grouped_by
961
962
  #: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard__grouped_by
962
963
  msgid "Grouped By"
963
964
  msgstr "Gruplanma"
@@ -1181,11 +1182,19 @@ msgstr ""
1181
1182
  #. odoo-python
1182
1183
  #: code:addons/account_financial_report/report/general_ledger.py:0
1183
1184
  #: code:addons/account_financial_report/report/open_items.py:0
1185
+ #: code:addons/account_financial_report/report/open_items_xlsx.py:0
1184
1186
  #: code:addons/account_financial_report/report/trial_balance.py:0
1185
1187
  #, python-format
1186
1188
  msgid "Missing Partner"
1187
1189
  msgstr ""
1188
1190
 
1191
+ #. module: account_financial_report
1192
+ #. odoo-python
1193
+ #: code:addons/account_financial_report/report/open_items.py:0
1194
+ #, python-format
1195
+ msgid "Missing Salesperson"
1196
+ msgstr ""
1197
+
1189
1198
  #. module: account_financial_report
1190
1199
  #: model:ir.model,name:account_financial_report.model_account_age_report_configuration_line
1191
1200
  msgid "Model to set interval lines for Age partner balance report"
@@ -1393,6 +1402,11 @@ msgstr ""
1393
1402
  msgid "Partner Initial balance"
1394
1403
  msgstr "İş Ortağı Başlangıç bakiyesi"
1395
1404
 
1405
+ #. module: account_financial_report
1406
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__open_items_report_wizard__grouped_by__salesperson
1407
+ msgid "Partner Salesperson"
1408
+ msgstr ""
1409
+
1396
1410
  #. module: account_financial_report
1397
1411
  #. odoo-python
1398
1412
  #: code:addons/account_financial_report/report/aged_partner_balance_xlsx.py:0
@@ -1417,6 +1431,7 @@ msgstr "Ortak başlangıç bakiyesi"
1417
1431
 
1418
1432
  #. module: account_financial_report
1419
1433
  #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__partners
1434
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__open_items_report_wizard__grouped_by__partners
1420
1435
  msgid "Partners"
1421
1436
  msgstr "İş Ortakları"
1422
1437
 
@@ -160,3 +160,9 @@ class AgedPartnerBalanceReport(models.AbstractModel):
160
160
  "debit",
161
161
  "amount_currency",
162
162
  ]
163
+
164
+ def _get_report_values(self, docids, data):
165
+ wizard = self.env[data["wizard_name"]].browse(data["wizard_id"])
166
+ return {
167
+ "limit_text": wizard._limit_text,
168
+ }
@@ -413,6 +413,7 @@ class AgedPartnerBalanceReport(models.AbstractModel):
413
413
  return aged_partner_data
414
414
 
415
415
  def _get_report_values(self, docids, data):
416
+ res = super()._get_report_values(docids, data)
416
417
  wizard_id = data["wizard_id"]
417
418
  company = self.env["res.company"].browse(data["company_id"])
418
419
  company_id = data["company_id"]
@@ -455,18 +456,23 @@ class AgedPartnerBalanceReport(models.AbstractModel):
455
456
  aged_partner_data = self.with_context(
456
457
  age_partner_config=aged_partner_configuration
457
458
  )._calculate_percent(aged_partner_data)
458
- return {
459
- "doc_ids": [wizard_id],
460
- "doc_model": "aged.partner.balance.report.wizard",
461
- "docs": self.env["aged.partner.balance.report.wizard"].browse(wizard_id),
462
- "company_name": company.display_name,
463
- "currency_name": company.currency_id.name,
464
- "date_at": date_at,
465
- "only_posted_moves": only_posted_moves,
466
- "aged_partner_balance": aged_partner_data,
467
- "show_move_lines_details": show_move_line_details,
468
- "age_partner_config": aged_partner_configuration,
469
- }
459
+ res.update(
460
+ {
461
+ "doc_ids": [wizard_id],
462
+ "doc_model": "aged.partner.balance.report.wizard",
463
+ "docs": self.env["aged.partner.balance.report.wizard"].browse(
464
+ wizard_id
465
+ ),
466
+ "company_name": company.display_name,
467
+ "currency_name": company.currency_id.name,
468
+ "date_at": date_at,
469
+ "only_posted_moves": only_posted_moves,
470
+ "aged_partner_balance": aged_partner_data,
471
+ "show_move_lines_details": show_move_line_details,
472
+ "age_partner_config": aged_partner_configuration,
473
+ }
474
+ )
475
+ return res
470
476
 
471
477
  def _get_ml_fields(self):
472
478
  return self.COMMON_ML_FIELDS + [
@@ -331,7 +331,7 @@ class GeneralLedgerReport(models.AbstractModel):
331
331
  "rec_id": move_line["full_reconcile_id"][0]
332
332
  if move_line["full_reconcile_id"]
333
333
  else False,
334
- "rec_name": move_line["full_reconcile_id"][1]
334
+ "rec_name": move_line["matching_number"]
335
335
  if move_line["full_reconcile_id"]
336
336
  else "",
337
337
  "currency_id": move_line["currency_id"],
@@ -375,7 +375,6 @@ class GeneralLedgerReport(models.AbstractModel):
375
375
  domain += [("move_id.state", "=", "posted")]
376
376
  else:
377
377
  domain += [("move_id.state", "in", ["posted", "draft"])]
378
-
379
378
  if cost_center_ids:
380
379
  domain += [("analytic_account_ids", "in", cost_center_ids)]
381
380
  return domain
@@ -479,7 +478,7 @@ class GeneralLedgerReport(models.AbstractModel):
479
478
  {
480
479
  rec_id: {
481
480
  "id": rec_id,
482
- "name": move_line["full_reconcile_id"][1],
481
+ "name": move_line["matching_number"],
483
482
  }
484
483
  }
485
484
  )
@@ -748,6 +747,7 @@ class GeneralLedgerReport(models.AbstractModel):
748
747
 
749
748
  # flake8: noqa: C901
750
749
  def _get_report_values(self, docids, data):
750
+ res = super()._get_report_values(docids, data)
751
751
  wizard_id = data["wizard_id"]
752
752
  company = self.env["res.company"].browse(data["company_id"])
753
753
  company_id = data["company_id"]
@@ -877,29 +877,32 @@ class GeneralLedgerReport(models.AbstractModel):
877
877
  if not gl_item["currency_id"] and len(fin_bal_currency_ids) == 1:
878
878
  fin_bal_currency_id = fin_bal_currency_ids[0]
879
879
  gl_item["fin_bal_currency_id"] = fin_bal_currency_id
880
- return {
881
- "doc_ids": [wizard_id],
882
- "doc_model": "general.ledger.report.wizard",
883
- "docs": self.env["general.ledger.report.wizard"].browse(wizard_id),
884
- "foreign_currency": data["foreign_currency"],
885
- "company_name": company.display_name,
886
- "company_currency": company.currency_id,
887
- "currency_name": company.currency_id.name,
888
- "date_from": data["date_from"],
889
- "date_to": data["date_to"],
890
- "only_posted_moves": data["only_posted_moves"],
891
- "hide_account_at_0": data["hide_account_at_0"],
892
- "show_cost_center": data["show_cost_center"],
893
- "general_ledger": general_ledger,
894
- "accounts_data": accounts_data,
895
- "journals_data": journals_data,
896
- "full_reconcile_data": full_reconcile_data,
897
- "taxes_data": taxes_data,
898
- "centralize": centralize,
899
- "analytic_data": analytic_data,
900
- "filter_partner_ids": True if partner_ids else False,
901
- "currency_model": self.env["res.currency"],
902
- }
880
+ res.update(
881
+ {
882
+ "doc_ids": [wizard_id],
883
+ "doc_model": "general.ledger.report.wizard",
884
+ "docs": self.env["general.ledger.report.wizard"].browse(wizard_id),
885
+ "foreign_currency": data["foreign_currency"],
886
+ "company_name": company.display_name,
887
+ "company_currency": company.currency_id,
888
+ "currency_name": company.currency_id.name,
889
+ "date_from": data["date_from"],
890
+ "date_to": data["date_to"],
891
+ "only_posted_moves": data["only_posted_moves"],
892
+ "hide_account_at_0": data["hide_account_at_0"],
893
+ "show_cost_center": data["show_cost_center"],
894
+ "general_ledger": general_ledger,
895
+ "accounts_data": accounts_data,
896
+ "journals_data": journals_data,
897
+ "full_reconcile_data": full_reconcile_data,
898
+ "taxes_data": taxes_data,
899
+ "centralize": centralize,
900
+ "analytic_data": analytic_data,
901
+ "filter_partner_ids": True if partner_ids else False,
902
+ "currency_model": self.env["res.currency"],
903
+ }
904
+ )
905
+ return res
903
906
 
904
907
  def _get_ml_fields(self):
905
908
  return self.COMMON_ML_FIELDS + [
@@ -913,4 +916,5 @@ class GeneralLedgerReport(models.AbstractModel):
913
916
  "balance",
914
917
  "tax_ids",
915
918
  "move_name",
919
+ "matching_number",
916
920
  ]
@@ -9,6 +9,7 @@ from odoo import models
9
9
 
10
10
 
11
11
  class JournalLedgerReport(models.AbstractModel):
12
+ _inherit = "report.account_financial_report.abstract_report"
12
13
  _name = "report.account_financial_report.journal_ledger"
13
14
  _description = "Journal Ledger Report"
14
15
 
@@ -298,6 +299,7 @@ class JournalLedgerReport(models.AbstractModel):
298
299
  return journals_taxes_data_2
299
300
 
300
301
  def _get_report_values(self, docids, data):
302
+ res = super()._get_report_values(docids, data)
301
303
  wizard_id = data["wizard_id"]
302
304
  wizard = self.env["journal.ledger.report.wizard"].browse(wizard_id)
303
305
  company = self.env["res.company"].browse(data["company_id"])
@@ -351,25 +353,28 @@ class JournalLedgerReport(models.AbstractModel):
351
353
  if journal_id in journal_totals.keys():
352
354
  for item in ["debit", "credit"]:
353
355
  journal_ledger_data[item] += journal_totals[journal_id][item]
354
- return {
355
- "doc_ids": [wizard_id],
356
- "doc_model": "journal.ledger.report.wizard",
357
- "docs": self.env["journal.ledger.report.wizard"].browse(wizard_id),
358
- "group_option": data["group_option"],
359
- "foreign_currency": data["foreign_currency"],
360
- "with_account_name": data["with_account_name"],
361
- "company_name": company.display_name,
362
- "currency_name": company.currency_id.name,
363
- "date_from": data["date_from"],
364
- "date_to": data["date_to"],
365
- "move_target": data["move_target"],
366
- "with_auto_sequence": data["with_auto_sequence"],
367
- "account_ids_data": account_ids_data,
368
- "partner_ids_data": partner_ids_data,
369
- "currency_ids_data": currency_ids_data,
370
- "move_ids_data": move_ids_data,
371
- "tax_line_data": tax_line_ids_data,
372
- "move_line_ids_taxes_data": move_line_ids_taxes_data,
373
- "Journal_Ledgers": journal_ledgers_data,
374
- "Moves": moves_data,
375
- }
356
+ res.update(
357
+ {
358
+ "doc_ids": [wizard_id],
359
+ "doc_model": "journal.ledger.report.wizard",
360
+ "docs": self.env["journal.ledger.report.wizard"].browse(wizard_id),
361
+ "group_option": data["group_option"],
362
+ "foreign_currency": data["foreign_currency"],
363
+ "with_account_name": data["with_account_name"],
364
+ "company_name": company.display_name,
365
+ "currency_name": company.currency_id.name,
366
+ "date_from": data["date_from"],
367
+ "date_to": data["date_to"],
368
+ "move_target": data["move_target"],
369
+ "with_auto_sequence": data["with_auto_sequence"],
370
+ "account_ids_data": account_ids_data,
371
+ "partner_ids_data": partner_ids_data,
372
+ "currency_ids_data": currency_ids_data,
373
+ "move_ids_data": move_ids_data,
374
+ "tax_line_data": tax_line_ids_data,
375
+ "move_line_ids_taxes_data": move_line_ids_taxes_data,
376
+ "Journal_Ledgers": journal_ledgers_data,
377
+ "Moves": moves_data,
378
+ }
379
+ )
380
+ return res
@@ -159,7 +159,7 @@ class OpenItemsReport(models.AbstractModel):
159
159
  "partner_name": partner.name or "",
160
160
  "ref_label": ref_label,
161
161
  "journal_id": move_line["journal_id"][0],
162
- "move_name": move_line["move_id"][1],
162
+ "move_name": move_line["move_name"],
163
163
  "entry_id": move_line["move_id"][0],
164
164
  "currency_id": move_line["currency_id"][0]
165
165
  if move_line["currency_id"]
@@ -243,6 +243,7 @@ class OpenItemsReport(models.AbstractModel):
243
243
  return new_open_items
244
244
 
245
245
  def _get_report_values(self, docids, data):
246
+ res = super()._get_report_values(docids, data)
246
247
  wizard_id = data["wizard_id"]
247
248
  company = self.env["res.company"].browse(data["company_id"])
248
249
  company_id = data["company_id"]
@@ -277,24 +278,27 @@ class OpenItemsReport(models.AbstractModel):
277
278
  partners_data,
278
279
  accounts_data,
279
280
  )
280
- return {
281
- "doc_ids": [wizard_id],
282
- "doc_model": "open.items.report.wizard",
283
- "docs": self.env["open.items.report.wizard"].browse(wizard_id),
284
- "foreign_currency": data["foreign_currency"],
285
- "show_partner_details": data["show_partner_details"],
286
- "company_name": company.display_name,
287
- "currency_name": company.currency_id.name,
288
- "date_at": date_at_object.strftime("%d/%m/%Y"),
289
- "hide_account_at_0": data["hide_account_at_0"],
290
- "target_move": data["target_move"],
291
- "journals_data": journals_data,
292
- "partners_data": partners_data,
293
- "accounts_data": accounts_data,
294
- "total_amount": total_amount,
295
- "Open_Items": open_items_move_lines_data,
296
- "grouped_by": grouped_by,
297
- }
281
+ res.update(
282
+ {
283
+ "doc_ids": [wizard_id],
284
+ "doc_model": "open.items.report.wizard",
285
+ "docs": self.env["open.items.report.wizard"].browse(wizard_id),
286
+ "foreign_currency": data["foreign_currency"],
287
+ "show_partner_details": data["show_partner_details"],
288
+ "company_name": company.display_name,
289
+ "currency_name": company.currency_id.name,
290
+ "date_at": date_at_object.strftime("%d/%m/%Y"),
291
+ "hide_account_at_0": data["hide_account_at_0"],
292
+ "target_move": data["target_move"],
293
+ "journals_data": journals_data,
294
+ "partners_data": partners_data,
295
+ "accounts_data": accounts_data,
296
+ "total_amount": total_amount,
297
+ "Open_Items": open_items_move_lines_data,
298
+ "grouped_by": grouped_by,
299
+ }
300
+ )
301
+ return res
298
302
 
299
303
  def _get_ml_fields(self):
300
304
  return self.COMMON_ML_FIELDS + [
@@ -306,4 +310,5 @@ class OpenItemsReport(models.AbstractModel):
306
310
  "amount_residual_currency",
307
311
  "debit",
308
312
  "amount_currency",
313
+ "move_name",
309
314
  ]
@@ -463,12 +463,16 @@
463
463
  res-model="account.move.line"
464
464
  view-type="form"
465
465
  >
466
- <t t-out="line['ref_label']" />
466
+ <t
467
+ t-out="limit_text(line['ref_label'], 'label_text_limit')"
468
+ />
467
469
  </span>
468
470
  </t>
469
471
  <t t-else="">
470
472
  <span>
471
- <t t-out="line['ref_label']" />
473
+ <t
474
+ t-out="limit_text(line['ref_label'], 'label_text_limit')"
475
+ />
472
476
  </span>
473
477
  </t>
474
478
  </div>
@@ -267,7 +267,10 @@
267
267
  />
268
268
  </div>
269
269
  <div class="act_as_cell left" name="label">
270
- <span t-if="move_line['label']" t-esc="move_line['label']" />
270
+ <span
271
+ t-if="move_line['label']"
272
+ t-esc="limit_text(move_line['label'], 'label_text_limit')"
273
+ />
271
274
  <span t-if="not move_line['label']">/</span>
272
275
  </div>
273
276
  <div class="act_as_cell left" name="taxes">
@@ -280,7 +283,7 @@
280
283
  t-value="o._get_data_from_dict(move_line['move_line_id'], move_line_ids_taxes_data)"
281
284
  />
282
285
  <span
283
- t-esc="o._get_ml_tax_description(move_line, tax_line_dat, move_line_ids_taxes_dat)"
286
+ t-esc="limit_text(o._get_ml_tax_description(move_line, tax_line_dat, move_line_ids_taxes_dat), 'label_text_limit')"
284
287
  />
285
288
  </div>
286
289
  <div class="act_as_cell amount" name="debit">
@@ -326,7 +326,7 @@
326
326
  </div>
327
327
  <!--## ref - label-->
328
328
  <div class="act_as_cell left">
329
- <span t-esc="line['ref_label']" />
329
+ <span t-esc="limit_text(line['ref_label'], 'label_text_limit')" />
330
330
  </div>
331
331
  <!--## date_due-->
332
332
  <div class="act_as_cell left">