odoo-addon-account-financial-report 17.0.1.6.12__py3-none-any.whl → 17.0.1.7.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 (33) hide show
  1. odoo/addons/account_financial_report/README.rst +1 -1
  2. odoo/addons/account_financial_report/__manifest__.py +1 -1
  3. odoo/addons/account_financial_report/i18n/account_financial_report.pot +16 -0
  4. odoo/addons/account_financial_report/i18n/ar.po +1 -1
  5. odoo/addons/account_financial_report/i18n/ca.po +1 -1
  6. odoo/addons/account_financial_report/i18n/de.po +1 -1
  7. odoo/addons/account_financial_report/i18n/es.po +26 -8
  8. odoo/addons/account_financial_report/i18n/es_AR.po +1 -1
  9. odoo/addons/account_financial_report/i18n/es_MX.po +1 -1
  10. odoo/addons/account_financial_report/i18n/fr.po +15 -16
  11. odoo/addons/account_financial_report/i18n/fr_CH.po +6 -7
  12. odoo/addons/account_financial_report/i18n/hr.po +1 -1
  13. odoo/addons/account_financial_report/i18n/hr_HR.po +1 -1
  14. odoo/addons/account_financial_report/i18n/it.po +1 -1
  15. odoo/addons/account_financial_report/i18n/ja.po +1 -1
  16. odoo/addons/account_financial_report/i18n/nl.po +1 -1
  17. odoo/addons/account_financial_report/i18n/nl_NL.po +1 -1
  18. odoo/addons/account_financial_report/i18n/pt.po +1 -1
  19. odoo/addons/account_financial_report/i18n/pt_BR.po +1 -1
  20. odoo/addons/account_financial_report/i18n/ro.po +1 -1
  21. odoo/addons/account_financial_report/i18n/sv.po +1 -1
  22. odoo/addons/account_financial_report/i18n/tr.po +1 -1
  23. odoo/addons/account_financial_report/report/open_items.py +29 -25
  24. odoo/addons/account_financial_report/report/open_items_xlsx.py +150 -17
  25. odoo/addons/account_financial_report/report/templates/open_items.xml +183 -56
  26. odoo/addons/account_financial_report/static/description/index.html +1 -1
  27. odoo/addons/account_financial_report/tests/test_open_items.py +30 -0
  28. odoo/addons/account_financial_report/wizard/open_items_wizard.py +18 -0
  29. odoo/addons/account_financial_report/wizard/open_items_wizard_view.xml +1 -0
  30. {odoo_addon_account_financial_report-17.0.1.6.12.dist-info → odoo_addon_account_financial_report-17.0.1.7.0.dist-info}/METADATA +2 -2
  31. {odoo_addon_account_financial_report-17.0.1.6.12.dist-info → odoo_addon_account_financial_report-17.0.1.7.0.dist-info}/RECORD +33 -33
  32. {odoo_addon_account_financial_report-17.0.1.6.12.dist-info → odoo_addon_account_financial_report-17.0.1.7.0.dist-info}/WHEEL +0 -0
  33. {odoo_addon_account_financial_report-17.0.1.6.12.dist-info → odoo_addon_account_financial_report-17.0.1.7.0.dist-info}/top_level.txt +0 -0
@@ -11,7 +11,7 @@ Account Financial Reports
11
11
  !! This file is generated by oca-gen-addon-readme !!
12
12
  !! changes will be overwritten. !!
13
13
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14
- !! source digest: sha256:9a1c3ae053c7fc73842b096646fcf93f131762e400d8f9a1b7695c75bc0acdf5
14
+ !! source digest: sha256:cfbb2086a9be8678690d4a0be5da4df57c9659b82433d1ce724a46ae7aa70cb3
15
15
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16
16
 
17
17
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -6,7 +6,7 @@
6
6
  # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
7
7
  {
8
8
  "name": "Account Financial Reports",
9
- "version": "17.0.1.6.12",
9
+ "version": "17.0.1.7.0",
10
10
  "category": "Reporting",
11
11
  "summary": "OCA Financial Reports",
12
12
  "author": "Camptocamp,"
@@ -752,6 +752,7 @@ msgstr ""
752
752
  #. odoo-python
753
753
  #: code:addons/account_financial_report/report/general_ledger_xlsx.py:0
754
754
  #: code:addons/account_financial_report/report/open_items_xlsx.py:0
755
+ #: code:addons/account_financial_report/report/open_items_xlsx.py:0
755
756
  #: code:addons/account_financial_report/report/trial_balance_xlsx.py:0
756
757
  #: code:addons/account_financial_report/report/trial_balance_xlsx.py:0
757
758
  #: code:addons/account_financial_report/report/trial_balance_xlsx.py:0
@@ -953,6 +954,7 @@ msgstr ""
953
954
 
954
955
  #. module: account_financial_report
955
956
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__grouped_by
957
+ #: model:ir.model.fields,field_description:account_financial_report.field_open_items_report_wizard__grouped_by
956
958
  #: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard__grouped_by
957
959
  msgid "Grouped By"
958
960
  msgstr ""
@@ -1178,6 +1180,7 @@ msgstr ""
1178
1180
  #: code:addons/account_financial_report/report/general_ledger.py:0
1179
1181
  #: code:addons/account_financial_report/report/general_ledger.py:0
1180
1182
  #: code:addons/account_financial_report/report/open_items.py:0
1183
+ #: code:addons/account_financial_report/report/open_items_xlsx.py:0
1181
1184
  #: code:addons/account_financial_report/report/trial_balance.py:0
1182
1185
  #: code:addons/account_financial_report/report/trial_balance.py:0
1183
1186
  #: code:addons/account_financial_report/report/trial_balance.py:0
@@ -1185,6 +1188,13 @@ msgstr ""
1185
1188
  msgid "Missing Partner"
1186
1189
  msgstr ""
1187
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
+
1188
1198
  #. module: account_financial_report
1189
1199
  #: model:ir.model,name:account_financial_report.model_account_age_report_configuration_line
1190
1200
  msgid "Model to set interval lines for Age partner balance report"
@@ -1395,6 +1405,11 @@ msgstr ""
1395
1405
  msgid "Partner Initial balance"
1396
1406
  msgstr ""
1397
1407
 
1408
+ #. module: account_financial_report
1409
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__open_items_report_wizard__grouped_by__salesperson
1410
+ msgid "Partner Salesperson"
1411
+ msgstr ""
1412
+
1398
1413
  #. module: account_financial_report
1399
1414
  #. odoo-python
1400
1415
  #: code:addons/account_financial_report/report/aged_partner_balance_xlsx.py:0
@@ -1419,6 +1434,7 @@ msgstr ""
1419
1434
 
1420
1435
  #. module: account_financial_report
1421
1436
  #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__partners
1437
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__open_items_report_wizard__grouped_by__partners
1422
1438
  msgid "Partners"
1423
1439
  msgstr ""
1424
1440
 
@@ -1277,7 +1277,7 @@ msgid "No limit"
1277
1277
  msgstr ""
1278
1278
 
1279
1279
  #. module: account_financial_report
1280
- #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
1280
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
1281
1281
  msgid "None"
1282
1282
  msgstr ""
1283
1283
 
@@ -1275,7 +1275,7 @@ msgid "No limit"
1275
1275
  msgstr "Sense l??mit"
1276
1276
 
1277
1277
  #. module: account_financial_report
1278
- #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
1278
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
1279
1279
  msgid "None"
1280
1280
  msgstr ""
1281
1281
 
@@ -1289,7 +1289,7 @@ msgid "No limit"
1289
1289
  msgstr "Keine Einschr??nkung"
1290
1290
 
1291
1291
  #. module: account_financial_report
1292
- #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
1292
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
1293
1293
  msgid "None"
1294
1294
  msgstr ""
1295
1295
 
@@ -7,16 +7,15 @@ msgstr ""
7
7
  "Project-Id-Version: Odoo Server 12.0+e\n"
8
8
  "Report-Msgid-Bugs-To: \n"
9
9
  "POT-Creation-Date: 2022-09-21 15:05+0000\n"
10
- "PO-Revision-Date: 2024-08-08 14:58+0000\n"
11
- "Last-Translator: carolinafernandez-tecnativa <carolina.fernandez@tecnativa."
12
- "com>\n"
10
+ "PO-Revision-Date: 2025-08-11 18:35+0000\n"
11
+ "Last-Translator: \"Pedro M. Baeza\" <pedro.baeza@tecnativa.com>\n"
13
12
  "Language-Team: \n"
14
13
  "Language: es\n"
15
14
  "MIME-Version: 1.0\n"
16
15
  "Content-Type: text/plain; charset=UTF-8\n"
17
16
  "Content-Transfer-Encoding: 8bit\n"
18
17
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
19
- "X-Generator: Weblate 5.6.2\n"
18
+ "X-Generator: Weblate 5.10.4\n"
20
19
 
21
20
  #. module: account_financial_report
22
21
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_lines_header
@@ -61,6 +60,9 @@ msgid ""
61
60
  " Duplicate amounts may be shown because more than one "
62
61
  "analytical account may be defined in the journal items."
63
62
  msgstr ""
63
+ "<i class=\"fa fa-exclamation-triangle mr-3\"/>\n"
64
+ " Puede que se muestren importes duplicados porque estén "
65
+ "definidas más de una cuenta en los apuntes contables."
64
66
 
65
67
  #. module: account_financial_report
66
68
  #: model_terms:ir.ui.view,arch_db:account_financial_report.res_config_settings_view_form
@@ -970,6 +972,7 @@ msgstr "Agrupar por"
970
972
 
971
973
  #. module: account_financial_report
972
974
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__grouped_by
975
+ #: model:ir.model.fields,field_description:account_financial_report.field_open_items_report_wizard__grouped_by
973
976
  #: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard__grouped_by
974
977
  msgid "Grouped By"
975
978
  msgstr "Agrupado por"
@@ -1202,7 +1205,13 @@ msgstr "Línea"
1202
1205
  #: code:addons/account_financial_report/report/trial_balance.py:0
1203
1206
  #, python-format
1204
1207
  msgid "Missing Partner"
1205
- msgstr "Falta el Socio"
1208
+ msgstr "Falta la empresa"
1209
+
1210
+ #. module: account_financial_report
1211
+ #: code:addons/account_financial_report/report/open_items.py:0
1212
+ #, python-format
1213
+ msgid "Missing Salesperson"
1214
+ msgstr "Sin comercial"
1206
1215
 
1207
1216
  #. module: account_financial_report
1208
1217
  #: model:ir.model,name:account_financial_report.model_account_age_report_configuration_line
@@ -1288,7 +1297,7 @@ msgid "No limit"
1288
1297
  msgstr "Sin límite"
1289
1298
 
1290
1299
  #. module: account_financial_report
1291
- #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
1300
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
1292
1301
  msgid "None"
1293
1302
  msgstr "Ninguna"
1294
1303
 
@@ -1415,6 +1424,12 @@ msgstr ""
1415
1424
  msgid "Partner Initial balance"
1416
1425
  msgstr "Saldo Inicial de empresa"
1417
1426
 
1427
+ #. module: account_financial_report
1428
+ #. odoo-python
1429
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__open_items_report_wizard__grouped_by__salesperson
1430
+ msgid "Partner Salesperson"
1431
+ msgstr "Comercial de la empresa"
1432
+
1418
1433
  #. module: account_financial_report
1419
1434
  #. odoo-python
1420
1435
  #: code:addons/account_financial_report/report/aged_partner_balance_xlsx.py:0
@@ -1439,6 +1454,7 @@ msgstr "Saldo inicial de empresa"
1439
1454
 
1440
1455
  #. module: account_financial_report
1441
1456
  #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__partners
1457
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__open_items_report_wizard__grouped_by__partners
1442
1458
  msgid "Partners"
1443
1459
  msgstr "Empresas"
1444
1460
 
@@ -1623,7 +1639,7 @@ msgstr "Cuenta inicial en un rango"
1623
1639
  #: code:addons/account_financial_report/report/trial_balance_xlsx.py:0
1624
1640
  #, python-format
1625
1641
  msgid "TOTAL"
1626
- msgstr ""
1642
+ msgstr "TOTAL"
1627
1643
 
1628
1644
  #. module: account_financial_report
1629
1645
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_general_ledger_lines
@@ -1783,6 +1799,8 @@ msgid ""
1783
1799
  "There is a problem in the structure of the account groups. You may need to "
1784
1800
  "create some child group of %s."
1785
1801
  msgstr ""
1802
+ "Hay un problema en la estructura de los grupos de cuentas. Puede que "
1803
+ "necesite crear algunos grupos hijos de %s."
1786
1804
 
1787
1805
  #. module: account_financial_report
1788
1806
  #: model:ir.model.fields,help:account_financial_report.field_general_ledger_report_wizard__domain
@@ -1953,7 +1971,7 @@ msgstr "Cuenta con Nombre"
1953
1971
  #: code:addons/account_financial_report/report/trial_balance.py:0
1954
1972
  #, python-format
1955
1973
  msgid "Without analytic account"
1956
- msgstr ""
1974
+ msgstr "Sin cuenta analítica"
1957
1975
 
1958
1976
  #. module: account_financial_report
1959
1977
  #. odoo-python
@@ -1273,7 +1273,7 @@ msgid "No limit"
1273
1273
  msgstr "Sin l??mite"
1274
1274
 
1275
1275
  #. module: account_financial_report
1276
- #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
1276
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
1277
1277
  msgid "None"
1278
1278
  msgstr "Ninguno"
1279
1279
 
@@ -1260,7 +1260,7 @@ msgid "No limit"
1260
1260
  msgstr ""
1261
1261
 
1262
1262
  #. module: account_financial_report
1263
- #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
1263
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
1264
1264
  msgid "None"
1265
1265
  msgstr ""
1266
1266
 
@@ -695,9 +695,9 @@ msgid ""
695
695
  "setup through chart of accounts will display initial and final balance in "
696
696
  "that currency."
697
697
  msgstr ""
698
- "Afficher les devises étrangères pour les écritures comptables, à moins "
699
- "que la devise du compte comptable ne soit pas définie dans le plan "
700
- "comptable affichera les balances initiale et finale dans cette monnaie."
698
+ "Afficher les devises étrangères pour les écritures comptables, à moins que "
699
+ "la devise du compte comptable ne soit pas définie dans le plan comptable "
700
+ "affichera les balances initiale et finale dans cette monnaie."
701
701
 
702
702
  #. module: account_financial_report
703
703
  #: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard__hide_parent_hierarchy_level
@@ -953,8 +953,8 @@ msgid ""
953
953
  " only one unaffected earnings account."
954
954
  msgstr ""
955
955
  "Le grand livre ne peut être généré que si la société sélectionnée a\n"
956
- " un seul compte de type bénéfice de "
957
- "l'année en cours."
956
+ " un seul compte de type bénéfice de l'année "
957
+ "en cours."
958
958
 
959
959
  #. module: account_financial_report
960
960
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__group_option
@@ -1277,7 +1277,7 @@ msgid "No limit"
1277
1277
  msgstr "Sans limite"
1278
1278
 
1279
1279
  #. module: account_financial_report
1280
- #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
1280
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
1281
1281
  msgid "None"
1282
1282
  msgstr "Aucun"
1283
1283
 
@@ -1733,8 +1733,7 @@ msgid ""
1733
1733
  "The Company in the General Ledger Report Wizard and in Date Range must be "
1734
1734
  "the same."
1735
1735
  msgstr ""
1736
- "La société dans le grand livre et dans la plage de dates doit être la "
1737
- "me."
1736
+ "La société dans le grand livre et dans la plage de dates doit être la même."
1738
1737
 
1739
1738
  #. module: account_financial_report
1740
1739
  #. odoo-python
@@ -1744,8 +1743,8 @@ msgid ""
1744
1743
  "The Company in the Trial Balance Report Wizard and in Date Range must be the "
1745
1744
  "same."
1746
1745
  msgstr ""
1747
- "La société dans la balance générale et dans la plage de dates doit être "
1748
- "l même."
1746
+ "La société dans la balance générale et dans la plage de dates doit être l "
1747
+ "même."
1749
1748
 
1750
1749
  #. module: account_financial_report
1751
1750
  #. odoo-python
@@ -1754,8 +1753,8 @@ msgstr ""
1754
1753
  msgid ""
1755
1754
  "The Company in the Vat Report Wizard and in Date Range must be the same."
1756
1755
  msgstr ""
1757
- "La société dans le rapport des taxes et dans la plage de dates doit être "
1758
- "la même."
1756
+ "La société dans le rapport des taxes et dans la plage de dates doit être la "
1757
+ "même."
1759
1758
 
1760
1759
  #. module: account_financial_report
1761
1760
  #. odoo-python
@@ -1838,8 +1837,8 @@ msgid ""
1838
1837
  "Trial Balance can be computed only if selected company have only\n"
1839
1838
  " one unaffected earnings account."
1840
1839
  msgstr ""
1841
- "La balance générale ne peut être générée que si la société "
1842
- "lectionnée a un seul\n"
1840
+ "La balance générale ne peut être générée que si la société sélectionnée a un "
1841
+ "seul\n"
1843
1842
  " compte de type bénéfice de l'année en "
1844
1843
  "cours."
1845
1844
 
@@ -1858,8 +1857,8 @@ msgid ""
1858
1857
  "balance."
1859
1858
  msgstr ""
1860
1859
  "Utiliser ce filtre pour masquer un compte ou un partenaire avec un solde "
1861
- "final à 0. Si un ou plusieurs partenaires sont filtrés, les totaux des "
1862
- "bits et crédits ne correspondront pas à la balance générale."
1860
+ "final à 0. Si un ou plusieurs partenaires sont filtrés, les totaux des "
1861
+ "débits et crédits ne correspondront pas à la balance générale."
1863
1862
 
1864
1863
  #. module: account_financial_report
1865
1864
  #: model:ir.model.fields,help:account_financial_report.field_trial_balance_report_wizard__show_hierarchy
@@ -697,9 +697,9 @@ msgid ""
697
697
  "setup through chart of accounts will display initial and final balance in "
698
698
  "that currency."
699
699
  msgstr ""
700
- "Afficher les devises étrangères pour les écritures comptables, à moins "
701
- "que la monnaie du compte comptable ne soit pas définie dans le plan "
702
- "comptable affichera les balances initiale et finale dans cette monnaie."
700
+ "Afficher les devises étrangères pour les écritures comptables, à moins que "
701
+ "la monnaie du compte comptable ne soit pas définie dans le plan comptable "
702
+ "affichera les balances initiale et finale dans cette monnaie."
703
703
 
704
704
  #. module: account_financial_report
705
705
  #: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard__hide_parent_hierarchy_level
@@ -1287,7 +1287,7 @@ msgid "No limit"
1287
1287
  msgstr "Sans limite"
1288
1288
 
1289
1289
  #. module: account_financial_report
1290
- #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
1290
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
1291
1291
  msgid "None"
1292
1292
  msgstr ""
1293
1293
 
@@ -1942,9 +1942,8 @@ msgid ""
1942
1942
  "When this option is enabled, the trial balance will not display accounts "
1943
1943
  "that have initial balance = debit = credit = end balance = 0"
1944
1944
  msgstr ""
1945
- "Lorsque cette option est activée, la balance générale n'affichera pas "
1946
- "les comptes qui ont balance initiale = débit = crédit = solde de clôture "
1947
- "= 0"
1945
+ "Lorsque cette option est activée, la balance générale n'affichera pas les "
1946
+ "comptes qui ont balance initiale = débit = crédit = solde de clôture = 0"
1948
1947
 
1949
1948
  #. module: account_financial_report
1950
1949
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__with_account_name
@@ -1268,7 +1268,7 @@ msgid "No limit"
1268
1268
  msgstr ""
1269
1269
 
1270
1270
  #. module: account_financial_report
1271
- #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
1271
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
1272
1272
  msgid "None"
1273
1273
  msgstr ""
1274
1274
 
@@ -1265,7 +1265,7 @@ msgid "No limit"
1265
1265
  msgstr ""
1266
1266
 
1267
1267
  #. module: account_financial_report
1268
- #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
1268
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
1269
1269
  msgid "None"
1270
1270
  msgstr ""
1271
1271
 
@@ -1289,7 +1289,7 @@ msgid "No limit"
1289
1289
  msgstr "Nessun limite"
1290
1290
 
1291
1291
  #. module: account_financial_report
1292
- #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
1292
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
1293
1293
  msgid "None"
1294
1294
  msgstr "Nessuna"
1295
1295
 
@@ -1258,7 +1258,7 @@ msgid "No limit"
1258
1258
  msgstr ""
1259
1259
 
1260
1260
  #. module: account_financial_report
1261
- #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
1261
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
1262
1262
  msgid "None"
1263
1263
  msgstr ""
1264
1264
 
@@ -1276,7 +1276,7 @@ msgid "No limit"
1276
1276
  msgstr "geen limiet"
1277
1277
 
1278
1278
  #. module: account_financial_report
1279
- #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
1279
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
1280
1280
  msgid "None"
1281
1281
  msgstr "Geen"
1282
1282
 
@@ -1264,7 +1264,7 @@ msgid "No limit"
1264
1264
  msgstr ""
1265
1265
 
1266
1266
  #. module: account_financial_report
1267
- #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
1267
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
1268
1268
  msgid "None"
1269
1269
  msgstr ""
1270
1270
 
@@ -1279,7 +1279,7 @@ msgid "No limit"
1279
1279
  msgstr "Sem limite"
1280
1280
 
1281
1281
  #. module: account_financial_report
1282
- #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
1282
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
1283
1283
  msgid "None"
1284
1284
  msgstr "Nenhum"
1285
1285
 
@@ -1273,7 +1273,7 @@ msgid "No limit"
1273
1273
  msgstr "Sem limite"
1274
1274
 
1275
1275
  #. module: account_financial_report
1276
- #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
1276
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
1277
1277
  msgid "None"
1278
1278
  msgstr "N??o"
1279
1279
 
@@ -1273,7 +1273,7 @@ msgid "No limit"
1273
1273
  msgstr "Nicio limit??"
1274
1274
 
1275
1275
  #. module: account_financial_report
1276
- #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
1276
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
1277
1277
  msgid "None"
1278
1278
  msgstr ""
1279
1279
 
@@ -1282,7 +1282,7 @@ msgid "No limit"
1282
1282
  msgstr "Utan begränsning"
1283
1283
 
1284
1284
  #. module: account_financial_report
1285
- #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
1285
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
1286
1286
  msgid "None"
1287
1287
  msgstr "Ingen"
1288
1288
 
@@ -1268,7 +1268,7 @@ msgid "No limit"
1268
1268
  msgstr "Limitsiz"
1269
1269
 
1270
1270
  #. module: account_financial_report
1271
- #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
1271
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
1272
1272
  msgid "None"
1273
1273
  msgstr "Hiçbiri"
1274
1274
 
@@ -1,5 +1,6 @@
1
1
  # ?? 2016 Julien Coux (Camptocamp)
2
2
  # Copyright 2020 ForgeFlow S.L. (https://www.forgeflow.com)
3
+ # Copyright 2024 Tecnativa - Carolina Fernandez
3
4
  # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
4
5
 
5
6
  import operator
@@ -66,6 +67,7 @@ class OpenItemsReport(models.AbstractModel):
66
67
  only_posted_moves,
67
68
  company_id,
68
69
  date_from,
70
+ grouped_by,
69
71
  ):
70
72
  domain = self._get_move_lines_domain_not_reconciled(
71
73
  company_id, account_ids, partner_ids, only_posted_moves, date_from
@@ -75,7 +77,7 @@ class OpenItemsReport(models.AbstractModel):
75
77
  domain=domain, fields=ml_fields
76
78
  )
77
79
  journals_ids = set()
78
- partners_ids = set()
80
+ group_ids = set()
79
81
  partners_data = {}
80
82
  if date_at_object < date.today():
81
83
  (
@@ -119,29 +121,27 @@ class OpenItemsReport(models.AbstractModel):
119
121
  journals_ids.add(move_line["journal_id"][0])
120
122
  acc_id = move_line["account_id"][0]
121
123
  # Partners data
122
- if move_line["partner_id"]:
123
- prt_id = move_line["partner_id"][0]
124
- prt_name = move_line["partner_id"][1]
124
+ partner = self.env["res.partner"]
125
+ if move_line.get("partner_id"):
126
+ partner = self.env["res.partner"].browse(move_line["partner_id"][0])
127
+ if grouped_by == "salesperson":
128
+ user = partner.user_id
129
+ group_id = user.id or 0
130
+ group_name = user.name or _("Missing Salesperson")
125
131
  else:
126
- prt_id = 0
127
- prt_name = _("Missing Partner")
128
- if prt_id not in partners_ids:
129
- partners_data.update({prt_id: {"id": prt_id, "name": prt_name}})
130
- partners_ids.add(prt_id)
131
-
132
+ group_id = partner.id or 0
133
+ group_name = partner.name or _("Missing Partner")
134
+ if group_id not in group_ids:
135
+ partners_data.update({group_id: {"id": group_id, "name": group_name}})
136
+ group_ids.add(group_id)
132
137
  # Move line update
133
- original = 0
134
-
135
138
  if not float_is_zero(move_line["credit"], precision_digits=2):
136
139
  original = move_line["credit"] * (-1)
137
- if not float_is_zero(move_line["debit"], precision_digits=2):
140
+ else:
138
141
  original = move_line["debit"]
139
142
 
140
143
  if move_line["ref"] == move_line["name"]:
141
- if move_line["ref"]:
142
- ref_label = move_line["ref"]
143
- else:
144
- ref_label = ""
144
+ ref_label = move_line["ref"] or ""
145
145
  elif not move_line["ref"]:
146
146
  ref_label = move_line["name"]
147
147
  elif not move_line["name"]:
@@ -155,8 +155,8 @@ class OpenItemsReport(models.AbstractModel):
155
155
  "date_maturity": move_line["date_maturity"]
156
156
  and move_line["date_maturity"].strftime("%d/%m/%Y"),
157
157
  "original": original,
158
- "partner_id": prt_id,
159
- "partner_name": prt_name,
158
+ "partner_id": partner.id or 0,
159
+ "partner_name": partner.name or "",
160
160
  "ref_label": ref_label,
161
161
  "journal_id": move_line["journal_id"][0],
162
162
  "move_name": move_line["move_id"][1],
@@ -172,12 +172,12 @@ class OpenItemsReport(models.AbstractModel):
172
172
 
173
173
  # Open Items Move Lines Data
174
174
  if acc_id not in open_items_move_lines_data.keys():
175
- open_items_move_lines_data[acc_id] = {prt_id: [move_line]}
175
+ open_items_move_lines_data[acc_id] = {group_id: [move_line]}
176
176
  else:
177
- if prt_id not in open_items_move_lines_data[acc_id].keys():
178
- open_items_move_lines_data[acc_id][prt_id] = [move_line]
177
+ if group_id not in open_items_move_lines_data[acc_id].keys():
178
+ open_items_move_lines_data[acc_id][group_id] = [move_line]
179
179
  else:
180
- open_items_move_lines_data[acc_id][prt_id].append(move_line)
180
+ open_items_move_lines_data[acc_id][group_id].append(move_line)
181
181
  journals_data = self._get_journals_data(list(journals_ids))
182
182
  accounts_data = self._get_accounts_data(open_items_move_lines_data.keys())
183
183
  return (
@@ -236,7 +236,9 @@ class OpenItemsReport(models.AbstractModel):
236
236
  move_lines = []
237
237
  for move_line in open_items_move_lines_data[acc_id][prt_id]:
238
238
  move_lines += [move_line]
239
- move_lines = sorted(move_lines, key=lambda k: (k["date"]))
239
+ move_lines = sorted(
240
+ move_lines, key=lambda k: (k["date"], k["partner_id"])
241
+ )
240
242
  new_open_items[acc_id][prt_id] = move_lines
241
243
  return new_open_items
242
244
 
@@ -251,7 +253,7 @@ class OpenItemsReport(models.AbstractModel):
251
253
  date_from = data["date_from"]
252
254
  only_posted_moves = data["only_posted_moves"]
253
255
  show_partner_details = data["show_partner_details"]
254
-
256
+ grouped_by = data["grouped_by"]
255
257
  (
256
258
  move_lines_data,
257
259
  partners_data,
@@ -265,6 +267,7 @@ class OpenItemsReport(models.AbstractModel):
265
267
  only_posted_moves,
266
268
  company_id,
267
269
  date_from,
270
+ grouped_by,
268
271
  )
269
272
 
270
273
  total_amount = self._calculate_amounts(open_items_move_lines_data)
@@ -290,6 +293,7 @@ class OpenItemsReport(models.AbstractModel):
290
293
  "accounts_data": accounts_data,
291
294
  "total_amount": total_amount,
292
295
  "Open_Items": open_items_move_lines_data,
296
+ "grouped_by": grouped_by,
293
297
  }
294
298
 
295
299
  def _get_ml_fields(self):