odoo-addon-account-financial-report 16.0.1.15.2.2__py3-none-any.whl → 16.0.1.16.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 (43) hide show
  1. odoo/addons/account_financial_report/README.rst +14 -1
  2. odoo/addons/account_financial_report/__manifest__.py +5 -1
  3. odoo/addons/account_financial_report/data/report_column_data.xml +358 -0
  4. odoo/addons/account_financial_report/i18n/account_financial_report.pot +125 -0
  5. odoo/addons/account_financial_report/models/__init__.py +1 -0
  6. odoo/addons/account_financial_report/models/account_financial_report_column.py +17 -0
  7. odoo/addons/account_financial_report/readme/CONTRIBUTORS.rst +1 -0
  8. odoo/addons/account_financial_report/readme/DESCRIPTION.rst +3 -0
  9. odoo/addons/account_financial_report/readme/HISTORY.rst +5 -0
  10. odoo/addons/account_financial_report/readme/ROADMAP.rst +3 -0
  11. odoo/addons/account_financial_report/report/abstract_report.py +15 -0
  12. odoo/addons/account_financial_report/report/aged_partner_balance.py +18 -12
  13. odoo/addons/account_financial_report/report/general_ledger.py +27 -24
  14. odoo/addons/account_financial_report/report/journal_ledger.py +27 -22
  15. odoo/addons/account_financial_report/report/open_items.py +24 -19
  16. odoo/addons/account_financial_report/report/templates/general_ledger.xml +116 -52
  17. odoo/addons/account_financial_report/report/templates/journal_ledger.xml +79 -31
  18. odoo/addons/account_financial_report/report/templates/open_items.xml +51 -22
  19. odoo/addons/account_financial_report/report/trial_balance.py +30 -26
  20. odoo/addons/account_financial_report/report/vat_report.py +21 -16
  21. odoo/addons/account_financial_report/security/ir.model.access.csv +1 -0
  22. odoo/addons/account_financial_report/static/description/index.html +33 -19
  23. odoo/addons/account_financial_report/tests/test_aged_partner_balance.py +4 -4
  24. odoo/addons/account_financial_report/tests/test_general_ledger.py +1 -1
  25. odoo/addons/account_financial_report/tests/test_journal_ledger.py +5 -5
  26. odoo/addons/account_financial_report/tests/test_open_items.py +1 -1
  27. odoo/addons/account_financial_report/tests/test_trial_balance.py +4 -4
  28. odoo/addons/account_financial_report/tests/test_vat_report.py +1 -1
  29. odoo/addons/account_financial_report/view/account_financial_report_column_view.xml +46 -0
  30. odoo/addons/account_financial_report/wizard/abstract_wizard.py +25 -1
  31. odoo/addons/account_financial_report/wizard/aged_partner_balance_wizard.py +17 -15
  32. odoo/addons/account_financial_report/wizard/general_ledger_wizard.py +26 -23
  33. odoo/addons/account_financial_report/wizard/general_ledger_wizard_view.xml +7 -0
  34. odoo/addons/account_financial_report/wizard/journal_ledger_wizard.py +19 -17
  35. odoo/addons/account_financial_report/wizard/journal_ledger_wizard_view.xml +48 -32
  36. odoo/addons/account_financial_report/wizard/open_items_wizard.py +20 -18
  37. odoo/addons/account_financial_report/wizard/open_items_wizard_view.xml +67 -54
  38. odoo/addons/account_financial_report/wizard/trial_balance_wizard.py +26 -24
  39. odoo/addons/account_financial_report/wizard/vat_report_wizard.py +15 -13
  40. {odoo_addon_account_financial_report-16.0.1.15.2.2.dist-info → odoo_addon_account_financial_report-16.0.1.16.0.dist-info}/METADATA +16 -3
  41. {odoo_addon_account_financial_report-16.0.1.15.2.2.dist-info → odoo_addon_account_financial_report-16.0.1.16.0.dist-info}/RECORD +43 -40
  42. {odoo_addon_account_financial_report-16.0.1.15.2.2.dist-info → odoo_addon_account_financial_report-16.0.1.16.0.dist-info}/WHEEL +0 -0
  43. {odoo_addon_account_financial_report-16.0.1.15.2.2.dist-info → odoo_addon_account_financial_report-16.0.1.16.0.dist-info}/top_level.txt +0 -0
@@ -152,6 +152,18 @@ msgstr ""
152
152
  msgid "Account balance at 0 filter"
153
153
  msgstr ""
154
154
 
155
+ #. module: account_financial_report
156
+ #: model:account.financial.report.column,name:account_financial_report.general_ledger_report_wizard_column_account_code
157
+ #: model:account.financial.report.column,name:account_financial_report.journal_ledger_report_wizard_column_account_code
158
+ #: model:account.financial.report.column,name:account_financial_report.open_items_report_wizard_column_account_code
159
+ msgid "Account code"
160
+ msgstr ""
161
+
162
+ #. module: account_financial_report
163
+ #: model:account.financial.report.column,name:account_financial_report.journal_ledger_report_wizard_column_account_name
164
+ msgid "Account name"
165
+ msgstr ""
166
+
155
167
  #. module: account_financial_report
156
168
  #: model:ir.model.fields,field_description:account_financial_report.field_account_group__account_ids
157
169
  msgid "Accounts"
@@ -356,6 +368,17 @@ msgid "Analytic Distribution"
356
368
  msgstr ""
357
369
 
358
370
  #. module: account_financial_report
371
+ #: model:account.financial.report.column,name:account_financial_report.general_ledger_report_wizard_column_cost_center
372
+ msgid "Analytic account"
373
+ msgstr ""
374
+
375
+ #. module: account_financial_report
376
+ #: model:account.financial.report.column,name:account_financial_report.general_ledger_report_wizard_column_analytic_tags
377
+ msgid "Analytic tags"
378
+ msgstr ""
379
+
380
+ #. module: account_financial_report
381
+ #: model:account.financial.report.column,name:account_financial_report.general_ledger_report_wizard_column_balance
359
382
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_journal_all_taxes
360
383
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_journal_ledger_journal_taxes
361
384
  msgid "Balance"
@@ -439,6 +462,24 @@ msgstr ""
439
462
  msgid "Code"
440
463
  msgstr ""
441
464
 
465
+ #. module: account_financial_report
466
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_financial_report_abstract_wizard__column_ids
467
+ #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__column_ids
468
+ #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__column_ids
469
+ #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__column_ids
470
+ #: model:ir.model.fields,field_description:account_financial_report.field_open_items_report_wizard__column_ids
471
+ #: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard__column_ids
472
+ #: model:ir.model.fields,field_description:account_financial_report.field_vat_report_wizard__column_ids
473
+ msgid "Column"
474
+ msgstr ""
475
+
476
+ #. module: account_financial_report
477
+ #: model_terms:ir.ui.view,arch_db:account_financial_report.general_ledger_wizard
478
+ #: model_terms:ir.ui.view,arch_db:account_financial_report.journal_ledger_wizard
479
+ #: model_terms:ir.ui.view,arch_db:account_financial_report.open_items_wizard
480
+ msgid "Columns"
481
+ msgstr ""
482
+
442
483
  #. module: account_financial_report
443
484
  #. odoo-python
444
485
  #: code:addons/account_financial_report/report/journal_ledger_xlsx.py:0
@@ -472,6 +513,7 @@ msgstr ""
472
513
  #. module: account_financial_report
473
514
  #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__create_uid
474
515
  #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__create_uid
516
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_financial_report_column__create_uid
475
517
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__create_uid
476
518
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__create_uid
477
519
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__create_uid
@@ -484,6 +526,7 @@ msgstr ""
484
526
  #. module: account_financial_report
485
527
  #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__create_date
486
528
  #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__create_date
529
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_financial_report_column__create_date
487
530
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__create_date
488
531
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__create_date
489
532
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__create_date
@@ -499,6 +542,8 @@ msgstr ""
499
542
  #: code:addons/account_financial_report/report/journal_ledger_xlsx.py:0
500
543
  #: code:addons/account_financial_report/report/trial_balance_xlsx.py:0
501
544
  #: code:addons/account_financial_report/report/trial_balance_xlsx.py:0
545
+ #: model:account.financial.report.column,name:account_financial_report.general_ledger_report_wizard_column_credit
546
+ #: model:account.financial.report.column,name:account_financial_report.journal_ledger_report_wizard_column_credit
502
547
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_general_ledger_lines
503
548
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_journal_all_taxes
504
549
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_journal_ledger_journal_table_header
@@ -572,6 +617,9 @@ msgstr ""
572
617
  #: code:addons/account_financial_report/report/journal_ledger_xlsx.py:0
573
618
  #: code:addons/account_financial_report/report/open_items_xlsx.py:0
574
619
  #: code:addons/account_financial_report/wizard/journal_ledger_wizard.py:0
620
+ #: model:account.financial.report.column,name:account_financial_report.general_ledger_report_wizard_column_date
621
+ #: model:account.financial.report.column,name:account_financial_report.journal_ledger_report_wizard_column_date
622
+ #: model:account.financial.report.column,name:account_financial_report.open_items_report_wizard_column_date
575
623
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_move_lines
576
624
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_general_ledger_lines
577
625
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_journal_ledger_journal_table_header
@@ -612,6 +660,11 @@ msgstr ""
612
660
  msgid "Date at filter"
613
661
  msgstr ""
614
662
 
663
+ #. module: account_financial_report
664
+ #: model:account.financial.report.column,name:account_financial_report.open_items_report_wizard_column_date_due
665
+ msgid "Date due"
666
+ msgstr ""
667
+
615
668
  #. module: account_financial_report
616
669
  #. odoo-python
617
670
  #: code:addons/account_financial_report/report/vat_report_xlsx.py:0
@@ -651,6 +704,8 @@ msgstr ""
651
704
  #: code:addons/account_financial_report/report/journal_ledger_xlsx.py:0
652
705
  #: code:addons/account_financial_report/report/trial_balance_xlsx.py:0
653
706
  #: code:addons/account_financial_report/report/trial_balance_xlsx.py:0
707
+ #: model:account.financial.report.column,name:account_financial_report.general_ledger_report_wizard_column_debit
708
+ #: model:account.financial.report.column,name:account_financial_report.journal_ledger_report_wizard_column_debit
654
709
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_general_ledger_lines
655
710
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_journal_all_taxes
656
711
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_journal_ledger_journal_table_header
@@ -677,6 +732,7 @@ msgstr ""
677
732
  #. module: account_financial_report
678
733
  #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__display_name
679
734
  #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__display_name
735
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_financial_report_column__display_name
680
736
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__display_name
681
737
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__display_name
682
738
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__display_name
@@ -783,6 +839,9 @@ msgstr ""
783
839
  #: code:addons/account_financial_report/report/general_ledger_xlsx.py:0
784
840
  #: code:addons/account_financial_report/report/journal_ledger_xlsx.py:0
785
841
  #: code:addons/account_financial_report/report/open_items_xlsx.py:0
842
+ #: model:account.financial.report.column,name:account_financial_report.general_ledger_report_wizard_column_entry
843
+ #: model:account.financial.report.column,name:account_financial_report.journal_ledger_report_wizard_column_entry
844
+ #: model:account.financial.report.column,name:account_financial_report.open_items_report_wizard_column_entry
786
845
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_move_lines
787
846
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_general_ledger_lines
788
847
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_journal_ledger_journal_table_header
@@ -826,6 +885,16 @@ msgstr ""
826
885
  msgid "Export XLSX"
827
886
  msgstr ""
828
887
 
888
+ #. module: account_financial_report
889
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_financial_report_column__expression_label
890
+ msgid "Expression Label"
891
+ msgstr ""
892
+
893
+ #. module: account_financial_report
894
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_financial_report_column__field_type
895
+ msgid "Field Type"
896
+ msgstr ""
897
+
829
898
  #. module: account_financial_report
830
899
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__account_ids
831
900
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__account_ids
@@ -859,11 +928,24 @@ msgstr ""
859
928
  msgid "Filter partners"
860
929
  msgstr ""
861
930
 
931
+ #. module: account_financial_report
932
+ #: model_terms:ir.ui.view,arch_db:account_financial_report.journal_ledger_wizard
933
+ #: model_terms:ir.ui.view,arch_db:account_financial_report.open_items_wizard
934
+ msgid "Filters"
935
+ msgstr ""
936
+
862
937
  #. module: account_financial_report
863
938
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__foreign_currency
864
939
  msgid "Foreign Currency"
865
940
  msgstr ""
866
941
 
942
+ #. module: account_financial_report
943
+ #: model:account.financial.report.column,name:account_financial_report.general_ledger_report_wizard_column_foreign_currency
944
+ #: model:account.financial.report.column,name:account_financial_report.journal_ledger_report_wizard_column_foreign_currency
945
+ #: model:account.financial.report.column,name:account_financial_report.open_items_report_wizard_column_foreign_currency
946
+ msgid "Foreign currency"
947
+ msgstr ""
948
+
867
949
  #. module: account_financial_report
868
950
  #: model_terms:ir.ui.view,arch_db:account_financial_report.aged_partner_balance_wizard
869
951
  #: model_terms:ir.ui.view,arch_db:account_financial_report.general_ledger_wizard
@@ -996,6 +1078,7 @@ msgstr ""
996
1078
  #. module: account_financial_report
997
1079
  #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__id
998
1080
  #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__id
1081
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_financial_report_column__id
999
1082
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__id
1000
1083
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__id
1001
1084
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__id
@@ -1062,6 +1145,8 @@ msgstr ""
1062
1145
  #: code:addons/account_financial_report/report/general_ledger_xlsx.py:0
1063
1146
  #: code:addons/account_financial_report/report/open_items_xlsx.py:0
1064
1147
  #: code:addons/account_financial_report/wizard/journal_ledger_wizard.py:0
1148
+ #: model:account.financial.report.column,name:account_financial_report.general_ledger_report_wizard_column_journal
1149
+ #: model:account.financial.report.column,name:account_financial_report.open_items_report_wizard_column_journal
1065
1150
  #: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard__journal_ids
1066
1151
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_move_lines
1067
1152
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_general_ledger_lines
@@ -1124,9 +1209,15 @@ msgstr ""
1124
1209
  msgid "Journals"
1125
1210
  msgstr ""
1126
1211
 
1212
+ #. module: account_financial_report
1213
+ #: model:account.financial.report.column,name:account_financial_report.journal_ledger_report_wizard_column_ref_label
1214
+ msgid "Label"
1215
+ msgstr ""
1216
+
1127
1217
  #. module: account_financial_report
1128
1218
  #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration____last_update
1129
1219
  #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line____last_update
1220
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_financial_report_column____last_update
1130
1221
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard____last_update
1131
1222
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard____last_update
1132
1223
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard____last_update
@@ -1139,6 +1230,7 @@ msgstr ""
1139
1230
  #. module: account_financial_report
1140
1231
  #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__write_uid
1141
1232
  #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__write_uid
1233
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_financial_report_column__write_uid
1142
1234
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__write_uid
1143
1235
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__write_uid
1144
1236
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__write_uid
@@ -1151,6 +1243,7 @@ msgstr ""
1151
1243
  #. module: account_financial_report
1152
1244
  #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__write_date
1153
1245
  #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__write_date
1246
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_financial_report_column__write_date
1154
1247
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__write_date
1155
1248
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__write_date
1156
1249
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__write_date
@@ -1173,6 +1266,11 @@ msgstr ""
1173
1266
  msgid "Level %s"
1174
1267
  msgstr ""
1175
1268
 
1269
+ #. module: account_financial_report
1270
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_financial_report_column__limit
1271
+ msgid "Limit"
1272
+ msgstr ""
1273
+
1176
1274
  #. module: account_financial_report
1177
1275
  #. odoo-python
1178
1276
  #: code:addons/account_financial_report/report/trial_balance_xlsx.py:0
@@ -1187,6 +1285,16 @@ msgstr ""
1187
1285
  msgid "Line"
1188
1286
  msgstr ""
1189
1287
 
1288
+ #. module: account_financial_report
1289
+ #: model:ir.model,name:account_financial_report.model_account_financial_report_column
1290
+ msgid "Manage column options in financial reports"
1291
+ msgstr ""
1292
+
1293
+ #. module: account_financial_report
1294
+ #: model:account.financial.report.column,name:account_financial_report.general_ledger_report_wizard_column_matching_number
1295
+ msgid "Matching number"
1296
+ msgstr ""
1297
+
1190
1298
  #. module: account_financial_report
1191
1299
  #. odoo-python
1192
1300
  #: code:addons/account_financial_report/report/general_ledger.py:0
@@ -1240,6 +1348,7 @@ msgstr ""
1240
1348
  #: code:addons/account_financial_report/report/vat_report_xlsx.py:0
1241
1349
  #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__name
1242
1350
  #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__name
1351
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_financial_report_column__name
1243
1352
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_journal_all_taxes
1244
1353
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_journal_ledger_journal_taxes
1245
1354
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_vat_report_base
@@ -1380,6 +1489,7 @@ msgstr ""
1380
1489
  #. module: account_financial_report
1381
1490
  #. odoo-python
1382
1491
  #: code:addons/account_financial_report/report/open_items_xlsx.py:0
1492
+ #: model:account.financial.report.column,name:account_financial_report.open_items_report_wizard_column_original
1383
1493
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_open_items_lines_header
1384
1494
  #, python-format
1385
1495
  msgid "Original"
@@ -1393,6 +1503,9 @@ msgstr ""
1393
1503
  #: code:addons/account_financial_report/report/journal_ledger_xlsx.py:0
1394
1504
  #: code:addons/account_financial_report/report/open_items_xlsx.py:0
1395
1505
  #: code:addons/account_financial_report/report/trial_balance_xlsx.py:0
1506
+ #: model:account.financial.report.column,name:account_financial_report.general_ledger_report_wizard_column_partner
1507
+ #: model:account.financial.report.column,name:account_financial_report.journal_ledger_report_wizard_column_partner
1508
+ #: model:account.financial.report.column,name:account_financial_report.open_items_report_wizard_column_partner
1396
1509
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_lines_header
1397
1510
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_move_lines
1398
1511
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_general_ledger_lines
@@ -1521,6 +1634,8 @@ msgstr ""
1521
1634
  #: code:addons/account_financial_report/report/general_ledger_xlsx.py:0
1522
1635
  #: code:addons/account_financial_report/report/journal_ledger_xlsx.py:0
1523
1636
  #: code:addons/account_financial_report/report/open_items_xlsx.py:0
1637
+ #: model:account.financial.report.column,name:account_financial_report.general_ledger_report_wizard_column_ref_label
1638
+ #: model:account.financial.report.column,name:account_financial_report.open_items_report_wizard_column_ref_label
1524
1639
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_journal_ledger_journal_table_header
1525
1640
  #, python-format
1526
1641
  msgid "Ref - Label"
@@ -1531,11 +1646,17 @@ msgstr ""
1531
1646
  msgid "Report Action"
1532
1647
  msgstr ""
1533
1648
 
1649
+ #. module: account_financial_report
1650
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_financial_report_column__res_model
1651
+ msgid "Res Model"
1652
+ msgstr ""
1653
+
1534
1654
  #. module: account_financial_report
1535
1655
  #. odoo-python
1536
1656
  #: code:addons/account_financial_report/report/aged_partner_balance_xlsx.py:0
1537
1657
  #: code:addons/account_financial_report/report/aged_partner_balance_xlsx.py:0
1538
1658
  #: code:addons/account_financial_report/report/open_items_xlsx.py:0
1659
+ #: model:account.financial.report.column,name:account_financial_report.open_items_report_wizard_column_residual
1539
1660
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_lines_header
1540
1661
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_move_lines
1541
1662
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_open_items_lines_header
@@ -1546,6 +1667,8 @@ msgstr ""
1546
1667
  #. module: account_financial_report
1547
1668
  #. odoo-python
1548
1669
  #: code:addons/account_financial_report/report/journal_ledger_xlsx.py:0
1670
+ #: model:account.financial.report.column,name:account_financial_report.journal_ledger_report_wizard_column_sequence
1671
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_financial_report_column__sequence
1549
1672
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_journal_ledger_journal_table_header
1550
1673
  #, python-format
1551
1674
  msgid "Sequence"
@@ -1556,6 +1679,7 @@ msgstr ""
1556
1679
  #: code:addons/account_financial_report/report/general_ledger_xlsx.py:0
1557
1680
  #: code:addons/account_financial_report/report/open_items_xlsx.py:0
1558
1681
  #: code:addons/account_financial_report/report/trial_balance_xlsx.py:0
1682
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_financial_report_column__is_visible
1559
1683
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_general_ledger_filters
1560
1684
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_open_items_filters
1561
1685
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_trial_balance_filters
@@ -1735,6 +1859,7 @@ msgstr ""
1735
1859
  #. odoo-python
1736
1860
  #: code:addons/account_financial_report/report/general_ledger_xlsx.py:0
1737
1861
  #: code:addons/account_financial_report/report/journal_ledger_xlsx.py:0
1862
+ #: model:account.financial.report.column,name:account_financial_report.general_ledger_report_wizard_column_taxes
1738
1863
  #: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__taxes
1739
1864
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_general_ledger_lines
1740
1865
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_journal_ledger_journal_table_header
@@ -1,4 +1,5 @@
1
1
  from . import account_age_report_configuration
2
+ from . import account_financial_report_column
2
3
  from . import account_group
3
4
  from . import account
4
5
  from . import account_move_line
@@ -0,0 +1,17 @@
1
+ # Copyright 2025 Tecnativa - Carlos Dauden
2
+ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3
+ from odoo import fields, models
4
+
5
+
6
+ class AccountFinancialReportColumn(models.Model):
7
+ _name = "account.financial.report.column"
8
+ _description = "Manage column options in financial reports"
9
+ _order = "sequence, id"
10
+
11
+ res_model = fields.Char()
12
+ sequence = fields.Integer()
13
+ name = fields.Char(required=True, translate=True)
14
+ expression_label = fields.Char(required=True)
15
+ is_visible = fields.Boolean(string="Show", default=True)
16
+ field_type = fields.Char()
17
+ limit = fields.Integer()
@@ -25,6 +25,7 @@
25
25
  * Alexandre D. Díaz
26
26
  * Víctor Martínez
27
27
  * Carolina Fernandez
28
+ * Carlos Dauden
28
29
 
29
30
  * `Sygel <https://www.sygel.es>`__:
30
31
 
@@ -8,6 +8,9 @@ Invoicing / Reporting / OCA accounting reports.
8
8
  - VAT Report
9
9
  - Journal Ledger
10
10
 
11
+ It is possible to select the columns to show and limit the size of some of them from the
12
+ columns page.
13
+
11
14
  Currently General ledger, Trial Balance and Open Items are fully compatible with a foreign
12
15
  currency set up in account in order to display balances. Moreover, any foreign
13
16
  currency used in account move lines is properly shown.
@@ -1,3 +1,8 @@
1
+ 15.0.3.2.3 (2025-02-17)
2
+ ~~~~~~~~~~~~~~~~~~~~~~~
3
+
4
+ * Added the option to select columns to display and the ability to limit the width of the text
5
+
1
6
  11.0.2.5.0 (2019-04-26)
2
7
  ~~~~~~~~~~~~~~~~~~~~~~~
3
8
 
@@ -5,3 +5,6 @@
5
5
  * It would be nice to have in reports a column indicating the
6
6
  state of the entries when the option "All Entries" is selected
7
7
  in "Target Moves" field in a wizard
8
+ * Adapt reports so that the order of the columns displayed is dynamic
9
+ * Remove duplicated options to show columns (it has not been made in a stable version so
10
+ as not to generate confusion in users)
@@ -1,4 +1,5 @@
1
1
  # Copyright 2020 ForgeFlow S.L. (https://www.forgeflow.com)
2
+ # Copyright 2025 Tecnativa - Carlos Dauden
2
3
  # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3
4
 
4
5
  from odoo import api, models
@@ -160,3 +161,17 @@ class AgedPartnerBalanceReport(models.AbstractModel):
160
161
  "debit",
161
162
  "amount_currency",
162
163
  ]
164
+
165
+ def _get_report_values(self, docids, data):
166
+ wizard = self.env[data["wizard_name"]].browse(data["wizard_id"])
167
+ res = {f"{c.expression_label}_visible": c.is_visible for c in wizard.column_ids}
168
+ res.update(
169
+ {
170
+ f"{c.expression_label}_limit": c.limit
171
+ for c in wizard.column_ids
172
+ if c.field_type == "string"
173
+ }
174
+ )
175
+ # Pass function to be called in report
176
+ res["limit_text"] = wizard._limit_text
177
+ return res
@@ -403,6 +403,7 @@ class AgedPartnerBalanceReport(models.AbstractModel):
403
403
  return aged_partner_data
404
404
 
405
405
  def _get_report_values(self, docids, data):
406
+ res = super()._get_report_values(docids, data)
406
407
  wizard_id = data["wizard_id"]
407
408
  company = self.env["res.company"].browse(data["company_id"])
408
409
  company_id = data["company_id"]
@@ -440,18 +441,23 @@ class AgedPartnerBalanceReport(models.AbstractModel):
440
441
  aged_partner_data = self.with_context(
441
442
  age_partner_config=aged_partner_configuration
442
443
  )._calculate_percent(aged_partner_data)
443
- return {
444
- "doc_ids": [wizard_id],
445
- "doc_model": "aged.partner.balance.report.wizard",
446
- "docs": self.env["aged.partner.balance.report.wizard"].browse(wizard_id),
447
- "company_name": company.display_name,
448
- "currency_name": company.currency_id.name,
449
- "date_at": date_at,
450
- "only_posted_moves": only_posted_moves,
451
- "aged_partner_balance": aged_partner_data,
452
- "show_move_lines_details": show_move_line_details,
453
- "age_partner_config": aged_partner_configuration,
454
- }
444
+ res.update(
445
+ {
446
+ "doc_ids": [wizard_id],
447
+ "doc_model": "aged.partner.balance.report.wizard",
448
+ "docs": self.env["aged.partner.balance.report.wizard"].browse(
449
+ wizard_id
450
+ ),
451
+ "company_name": company.display_name,
452
+ "currency_name": company.currency_id.name,
453
+ "date_at": date_at,
454
+ "only_posted_moves": only_posted_moves,
455
+ "aged_partner_balance": aged_partner_data,
456
+ "show_move_lines_details": show_move_line_details,
457
+ "age_partner_config": aged_partner_configuration,
458
+ }
459
+ )
460
+ return res
455
461
 
456
462
  def _get_ml_fields(self):
457
463
  return self.COMMON_ML_FIELDS + [
@@ -376,7 +376,6 @@ class GeneralLedgerReport(models.AbstractModel):
376
376
  domain += [("move_id.state", "=", "posted")]
377
377
  else:
378
378
  domain += [("move_id.state", "in", ["posted", "draft"])]
379
-
380
379
  if cost_center_ids:
381
380
  domain += [("analytic_account_ids", "in", cost_center_ids)]
382
381
  return domain
@@ -749,6 +748,7 @@ class GeneralLedgerReport(models.AbstractModel):
749
748
 
750
749
  # flake8: noqa: C901
751
750
  def _get_report_values(self, docids, data):
751
+ res = super()._get_report_values(docids, data)
752
752
  wizard_id = data["wizard_id"]
753
753
  company = self.env["res.company"].browse(data["company_id"])
754
754
  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 + [
@@ -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