odoo-addon-account-financial-report 16.0.1.5.4.4__py3-none-any.whl → 16.0.1.6.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 (27) hide show
  1. odoo/addons/account_financial_report/README.rst +36 -1
  2. odoo/addons/account_financial_report/__manifest__.py +4 -1
  3. odoo/addons/account_financial_report/i18n/account_financial_report.pot +105 -5
  4. odoo/addons/account_financial_report/i18n/es.po +103 -0
  5. odoo/addons/account_financial_report/models/__init__.py +2 -0
  6. odoo/addons/account_financial_report/models/account_age_report_configuration.py +47 -0
  7. odoo/addons/account_financial_report/models/res_config_settings.py +14 -0
  8. odoo/addons/account_financial_report/readme/CONFIGURE.rst +26 -0
  9. odoo/addons/account_financial_report/readme/CONTRIBUTORS.rst +1 -0
  10. odoo/addons/account_financial_report/readme/DESCRIPTION.rst +4 -0
  11. odoo/addons/account_financial_report/report/aged_partner_balance.py +69 -8
  12. odoo/addons/account_financial_report/report/aged_partner_balance_xlsx.py +145 -104
  13. odoo/addons/account_financial_report/report/templates/aged_partner_balance.xml +428 -333
  14. odoo/addons/account_financial_report/security/ir.model.access.csv +2 -0
  15. odoo/addons/account_financial_report/security/security.xml +10 -0
  16. odoo/addons/account_financial_report/static/description/index.html +45 -21
  17. odoo/addons/account_financial_report/tests/__init__.py +1 -0
  18. odoo/addons/account_financial_report/tests/test_age_report_configuration.py +41 -0
  19. odoo/addons/account_financial_report/tests/test_aged_partner_balance.py +88 -7
  20. odoo/addons/account_financial_report/view/account_age_report_configuration_views.xml +41 -0
  21. odoo/addons/account_financial_report/view/res_config_settings_views.xml +56 -0
  22. odoo/addons/account_financial_report/wizard/aged_partner_balance_wizard.py +4 -0
  23. odoo/addons/account_financial_report/wizard/aged_partner_balance_wizard_view.xml +2 -3
  24. {odoo_addon_account_financial_report-16.0.1.5.4.4.dist-info → odoo_addon_account_financial_report-16.0.1.6.0.dist-info}/METADATA +37 -2
  25. {odoo_addon_account_financial_report-16.0.1.5.4.4.dist-info → odoo_addon_account_financial_report-16.0.1.6.0.dist-info}/RECORD +27 -20
  26. {odoo_addon_account_financial_report-16.0.1.5.4.4.dist-info → odoo_addon_account_financial_report-16.0.1.6.0.dist-info}/WHEEL +0 -0
  27. {odoo_addon_account_financial_report-16.0.1.5.4.4.dist-info → odoo_addon_account_financial_report-16.0.1.6.0.dist-info}/top_level.txt +0 -0
@@ -7,7 +7,7 @@ Account Financial Reports
7
7
  !! This file is generated by oca-gen-addon-readme !!
8
8
  !! changes will be overwritten. !!
9
9
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:cef68d51599f099ae394d2d6b98944bf45323ba4bf3e88483aafc1697ade7833
10
+ !! source digest: sha256:34860a3d62e5ebcec741d2f2bdc5a0e4e209b545dba76e0f9649a0aabb5aafbe
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -45,11 +45,45 @@ currency used in account move lines is properly shown.
45
45
  In case that in an account has not been configured a second currency foreign
46
46
  currency balances are not available.
47
47
 
48
+ Invoicing / Settings / Invoicing / OCA Aged Report Configuration you will be able to set
49
+ dynamic intervals that will appear on the Aged Partner Balance.
50
+ For further information, check CONFIGURE.rst
51
+
48
52
  **Table of contents**
49
53
 
50
54
  .. contents::
51
55
  :local:
52
56
 
57
+ Configuration
58
+ =============
59
+
60
+ To configure dynamic intervals for Aged Partner Balance you need to:
61
+
62
+ Go on 'Settings' -> 'Invoicing' -> 'OCA Aged Report Configuration'.
63
+
64
+ Click on option 'Configurations' and create new record.
65
+
66
+ Create new interval.
67
+ The name established on line will be the column to display in Aged Partner Balance.
68
+ Inferior limit established on line is the interval
69
+
70
+ Example of configuration inferior limit:
71
+
72
+ -> 15
73
+ -> 30
74
+ -> 60
75
+
76
+ It means the first interval is from 0 to 15, the second from 16 to 30, and the third is 61+.
77
+
78
+ Go on 'Invoicing' -> 'Reports' -> 'OCA accounting reports' -> 'Aged Partner Balance'
79
+
80
+ When wizard is open, you need to select your interval configuration and print report.
81
+
82
+ If you want to get default interval configuration any time you wish to print Aged Partner Report,
83
+ you can set default interval configuration per company in:
84
+
85
+ 'Settings' -> 'Invoicing' -> 'OCA Aged Report Configuration'.
86
+
53
87
  Known issues / Roadmap
54
88
  ======================
55
89
 
@@ -134,6 +168,7 @@ Contributors
134
168
  * João Marques
135
169
  * Alexandre D. Díaz
136
170
  * Víctor Martínez
171
+ * Carolina Fernandez
137
172
 
138
173
  * `Sygel <https://www.sygel.es>`__:
139
174
 
@@ -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": "16.0.1.5.4",
9
+ "version": "16.0.1.6.0",
10
10
  "category": "Reporting",
11
11
  "summary": "OCA Financial Reports",
12
12
  "author": "Camptocamp SA,"
@@ -18,12 +18,14 @@
18
18
  "depends": ["account", "date_range", "report_xlsx"],
19
19
  "data": [
20
20
  "security/ir.model.access.csv",
21
+ "security/security.xml",
21
22
  "wizard/aged_partner_balance_wizard_view.xml",
22
23
  "wizard/general_ledger_wizard_view.xml",
23
24
  "wizard/journal_ledger_wizard_view.xml",
24
25
  "wizard/open_items_wizard_view.xml",
25
26
  "wizard/trial_balance_wizard_view.xml",
26
27
  "wizard/vat_report_wizard_view.xml",
28
+ "view/account_age_report_configuration_views.xml",
27
29
  "menuitems.xml",
28
30
  "reports.xml",
29
31
  "report/templates/layouts.xml",
@@ -40,6 +42,7 @@
40
42
  "view/report_open_items.xml",
41
43
  "view/report_aged_partner_balance.xml",
42
44
  "view/report_vat_report.xml",
45
+ "view/res_config_settings_views.xml",
43
46
  ],
44
47
  "assets": {
45
48
  "web.assets_backend": [
@@ -49,6 +49,11 @@ msgstr ""
49
49
  msgid "<b>Taxes summary</b>"
50
50
  msgstr ""
51
51
 
52
+ #. module: account_financial_report
53
+ #: model_terms:ir.ui.view,arch_db:account_financial_report.res_config_settings_view_form
54
+ msgid "<span class=\"o_form_label\">Intervals configuration</span>"
55
+ msgstr ""
56
+
52
57
  #. module: account_financial_report
53
58
  #: model_terms:ir.ui.view,arch_db:account_financial_report.aged_partner_balance_wizard
54
59
  #: model_terms:ir.ui.view,arch_db:account_financial_report.general_ledger_wizard
@@ -89,6 +94,11 @@ msgstr ""
89
94
  msgid "Account"
90
95
  msgstr ""
91
96
 
97
+ #. module: account_financial_report
98
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__account_age_report_config_id
99
+ msgid "Account Age Report Config"
100
+ msgstr ""
101
+
92
102
  #. module: account_financial_report
93
103
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__account_code_from
94
104
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__account_code_from
@@ -150,11 +160,16 @@ msgstr ""
150
160
  msgid "Additional Filtering"
151
161
  msgstr ""
152
162
 
163
+ #. module: account_financial_report
164
+ #: model:ir.actions.act_window,name:account_financial_report.action_aged_partner_report_configuration
165
+ msgid "Age Partner Report Configuration"
166
+ msgstr ""
167
+
153
168
  #. module: account_financial_report
154
169
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_move_lines
155
170
  msgid ""
156
171
  "Age ≤ 120\n"
157
- " d."
172
+ " d."
158
173
  msgstr ""
159
174
 
160
175
  #. module: account_financial_report
@@ -169,7 +184,7 @@ msgstr ""
169
184
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_move_lines
170
185
  msgid ""
171
186
  "Age ≤ 30\n"
172
- " d."
187
+ " d."
173
188
  msgstr ""
174
189
 
175
190
  #. module: account_financial_report
@@ -184,7 +199,7 @@ msgstr ""
184
199
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_move_lines
185
200
  msgid ""
186
201
  "Age ≤ 60\n"
187
- " d."
202
+ " d."
188
203
  msgstr ""
189
204
 
190
205
  #. module: account_financial_report
@@ -199,7 +214,7 @@ msgstr ""
199
214
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_move_lines
200
215
  msgid ""
201
216
  "Age ≤ 90\n"
202
- " d."
217
+ " d."
203
218
  msgstr ""
204
219
 
205
220
  #. module: account_financial_report
@@ -419,6 +434,7 @@ msgstr ""
419
434
  #. module: account_financial_report
420
435
  #. odoo-python
421
436
  #: code:addons/account_financial_report/report/journal_ledger_xlsx.py:0
437
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__company_id
422
438
  #: model:ir.model.fields,field_description:account_financial_report.field_account_financial_report_abstract_wizard__company_id
423
439
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__company_id
424
440
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__company_id
@@ -436,6 +452,18 @@ msgid "Compute accounts"
436
452
  msgstr ""
437
453
 
438
454
  #. module: account_financial_report
455
+ #: model:ir.model,name:account_financial_report.model_res_config_settings
456
+ msgid "Config Settings"
457
+ msgstr ""
458
+
459
+ #. module: account_financial_report
460
+ #: model_terms:ir.ui.view,arch_db:account_financial_report.res_config_settings_view_form
461
+ msgid "Configurations"
462
+ msgstr ""
463
+
464
+ #. module: account_financial_report
465
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__create_uid
466
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__create_uid
439
467
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__create_uid
440
468
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__create_uid
441
469
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__create_uid
@@ -446,6 +474,8 @@ msgid "Created by"
446
474
  msgstr ""
447
475
 
448
476
  #. module: account_financial_report
477
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__create_date
478
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__create_date
449
479
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__create_date
450
480
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__create_date
451
481
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__create_date
@@ -637,6 +667,8 @@ msgid "Detail Taxes"
637
667
  msgstr ""
638
668
 
639
669
  #. module: account_financial_report
670
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__display_name
671
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__display_name
640
672
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__display_name
641
673
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__display_name
642
674
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__display_name
@@ -916,6 +948,12 @@ msgstr ""
916
948
  msgid "Grouped By"
917
949
  msgstr ""
918
950
 
951
+ #. module: account_financial_report
952
+ #: model_terms:ir.ui.view,arch_db:account_financial_report.res_config_settings_view_form
953
+ msgid ""
954
+ "Here you can set the intervals that will appear on the Aged Partner Balance."
955
+ msgstr ""
956
+
919
957
  #. module: account_financial_report
920
958
  #. odoo-python
921
959
  #: code:addons/account_financial_report/report/general_ledger_xlsx.py:0
@@ -945,6 +983,8 @@ msgid "Hierarchy Levels to display"
945
983
  msgstr ""
946
984
 
947
985
  #. module: account_financial_report
986
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__id
987
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__id
948
988
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__id
949
989
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__id
950
990
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__id
@@ -961,6 +1001,18 @@ msgid ""
961
1001
  "webkit one only), only centralized amounts per period."
962
1002
  msgstr ""
963
1003
 
1004
+ #. module: account_financial_report
1005
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__inferior_limit
1006
+ msgid "Inferior Limit"
1007
+ msgstr ""
1008
+
1009
+ #. module: account_financial_report
1010
+ #. odoo-python
1011
+ #: code:addons/account_financial_report/models/account_age_report_configuration.py:0
1012
+ #, python-format
1013
+ msgid "Inferior Limit must be greather than zero"
1014
+ msgstr ""
1015
+
964
1016
  #. module: account_financial_report
965
1017
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_trial_balance_lines_header
966
1018
  msgid ""
@@ -987,6 +1039,12 @@ msgstr ""
987
1039
  msgid "Initial balance"
988
1040
  msgstr ""
989
1041
 
1042
+ #. module: account_financial_report
1043
+ #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__age_partner_config_id
1044
+ #: model:ir.model.fields,field_description:account_financial_report.field_res_config_settings__default_age_partner_config_id
1045
+ msgid "Intervals configuration"
1046
+ msgstr ""
1047
+
990
1048
  #. module: account_financial_report
991
1049
  #. odoo-python
992
1050
  #: code:addons/account_financial_report/report/aged_partner_balance_xlsx.py:0
@@ -1056,6 +1114,8 @@ msgid "Journals"
1056
1114
  msgstr ""
1057
1115
 
1058
1116
  #. module: account_financial_report
1117
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration____last_update
1118
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line____last_update
1059
1119
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard____last_update
1060
1120
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard____last_update
1061
1121
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard____last_update
@@ -1066,6 +1126,8 @@ msgid "Last Modified on"
1066
1126
  msgstr ""
1067
1127
 
1068
1128
  #. module: account_financial_report
1129
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__write_uid
1130
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__write_uid
1069
1131
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__write_uid
1070
1132
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__write_uid
1071
1133
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__write_uid
@@ -1076,6 +1138,8 @@ msgid "Last Updated by"
1076
1138
  msgstr ""
1077
1139
 
1078
1140
  #. module: account_financial_report
1141
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__write_date
1142
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__write_date
1079
1143
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__write_date
1080
1144
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__write_date
1081
1145
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__write_date
@@ -1107,6 +1171,11 @@ msgstr ""
1107
1171
  msgid "Limit hierarchy levels"
1108
1172
  msgstr ""
1109
1173
 
1174
+ #. module: account_financial_report
1175
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__line_ids
1176
+ msgid "Line"
1177
+ msgstr ""
1178
+
1110
1179
  #. module: account_financial_report
1111
1180
  #. odoo-python
1112
1181
  #: code:addons/account_financial_report/report/general_ledger.py:0
@@ -1118,6 +1187,16 @@ msgstr ""
1118
1187
  msgid "Missing Partner"
1119
1188
  msgstr ""
1120
1189
 
1190
+ #. module: account_financial_report
1191
+ #: model:ir.model,name:account_financial_report.model_account_age_report_configuration_line
1192
+ msgid "Model to set interval lines for Age partner balance report"
1193
+ msgstr ""
1194
+
1195
+ #. module: account_financial_report
1196
+ #: model:ir.model,name:account_financial_report.model_account_age_report_configuration
1197
+ msgid "Model to set intervals for Age partner balance report"
1198
+ msgstr ""
1199
+
1121
1200
  #. module: account_financial_report
1122
1201
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__move_target
1123
1202
  msgid "Move Target"
@@ -1128,10 +1207,19 @@ msgstr ""
1128
1207
  msgid "Moves"
1129
1208
  msgstr ""
1130
1209
 
1210
+ #. module: account_financial_report
1211
+ #. odoo-python
1212
+ #: code:addons/account_financial_report/models/account_age_report_configuration.py:0
1213
+ #, python-format
1214
+ msgid "Must complete Configuration Lines"
1215
+ msgstr ""
1216
+
1131
1217
  #. module: account_financial_report
1132
1218
  #. odoo-python
1133
1219
  #: code:addons/account_financial_report/report/journal_ledger_xlsx.py:0
1134
1220
  #: code:addons/account_financial_report/report/vat_report_xlsx.py:0
1221
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__name
1222
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__name
1135
1223
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_journal_all_taxes
1136
1224
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_journal_ledger_journal_taxes
1137
1225
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_vat_report_base
@@ -1139,6 +1227,14 @@ msgstr ""
1139
1227
  msgid "Name"
1140
1228
  msgstr ""
1141
1229
 
1230
+ #. module: account_financial_report
1231
+ #. odoo-python
1232
+ #: code:addons/account_financial_report/models/account_age_report_configuration.py:0
1233
+ #: model:ir.model.constraint,message:account_financial_report.constraint_account_age_report_configuration_line_unique_name_config_combination
1234
+ #, python-format
1235
+ msgid "Name must be unique per report configuration"
1236
+ msgstr ""
1237
+
1142
1238
  #. module: account_financial_report
1143
1239
  #. odoo-python
1144
1240
  #: code:addons/account_financial_report/report/vat_report_xlsx.py:0
@@ -1196,6 +1292,11 @@ msgstr ""
1196
1292
  msgid "Not due"
1197
1293
  msgstr ""
1198
1294
 
1295
+ #. module: account_financial_report
1296
+ #: model_terms:ir.ui.view,arch_db:account_financial_report.res_config_settings_view_form
1297
+ msgid "OCA Aged Report Configuration"
1298
+ msgstr ""
1299
+
1199
1300
  #. module: account_financial_report
1200
1301
  #: model:ir.ui.menu,name:account_financial_report.menu_oca_reports
1201
1302
  msgid "OCA accounting reports"
@@ -1809,7 +1910,6 @@ msgid "future"
1809
1910
  msgstr ""
1810
1911
 
1811
1912
  #. module: account_financial_report
1812
- #: model_terms:ir.ui.view,arch_db:account_financial_report.aged_partner_balance_wizard
1813
1913
  #: model_terms:ir.ui.view,arch_db:account_financial_report.general_ledger_wizard
1814
1914
  #: model_terms:ir.ui.view,arch_db:account_financial_report.journal_ledger_wizard
1815
1915
  #: model_terms:ir.ui.view,arch_db:account_financial_report.open_items_wizard
@@ -53,6 +53,11 @@ msgstr "91 - 120 d."
53
53
  msgid "<b>Taxes summary</b>"
54
54
  msgstr "<b>Resumen de Impuestos</b>"
55
55
 
56
+ #. module: account_financial_report
57
+ #: model_terms:ir.ui.view,arch_db:account_financial_report.res_config_settings_view_form
58
+ msgid "<span class=\"o_form_label\">Intervals configuration</span>"
59
+ msgstr "<span class=\"o_form_label\">Configuración de intervalos</span>"
60
+
56
61
  #. module: account_financial_report
57
62
  #: model_terms:ir.ui.view,arch_db:account_financial_report.aged_partner_balance_wizard
58
63
  #: model_terms:ir.ui.view,arch_db:account_financial_report.general_ledger_wizard
@@ -93,6 +98,11 @@ msgstr "Extracto XLSX Account Financial Report"
93
98
  msgid "Account"
94
99
  msgstr "Cuenta"
95
100
 
101
+ #. module: account_financial_report
102
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__account_age_report_config_id
103
+ msgid "Account Age Report Config"
104
+ msgstr "Configuración del informe de calidad de deuda"
105
+
96
106
  #. module: account_financial_report
97
107
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__account_code_from
98
108
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__account_code_from
@@ -154,6 +164,11 @@ msgstr "Activar centralización"
154
164
  msgid "Additional Filtering"
155
165
  msgstr "Filtrado adicional"
156
166
 
167
+ #. module: account_financial_report
168
+ #: model:ir.actions.act_window,name:account_financial_report.action_aged_partner_report_configuration
169
+ msgid "Age Partner Report Configuration"
170
+ msgstr "Configuración Calidad de deuda"
171
+
157
172
  #. module: account_financial_report
158
173
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_move_lines
159
174
  msgid ""
@@ -424,6 +439,18 @@ msgstr "Grupos Hijos"
424
439
  msgid "Code"
425
440
  msgstr "Código"
426
441
 
442
+ #. module: account_financial_report
443
+ #: code:addons/account_financial_report/models/account_age_report_configuration.py:0
444
+ #: model:ir.model.constraint,message:account_financial_report.constraint_account_age_report_configuration_line_unique_name_config_combination
445
+ #, python-format
446
+ msgid "Name must be unique per report configuration"
447
+ msgstr "El nombre debe ser único por cada configuración del informe"
448
+
449
+ #. module: account_financial_report
450
+ #: model:ir.model,name:account_financial_report.model_res_company
451
+ msgid "Companies"
452
+ msgstr "Compañías"
453
+
427
454
  #. module: account_financial_report
428
455
  #. odoo-python
429
456
  #: code:addons/account_financial_report/report/journal_ledger_xlsx.py:0
@@ -444,6 +471,18 @@ msgid "Compute accounts"
444
471
  msgstr "Cuentas calculadas"
445
472
 
446
473
  #. module: account_financial_report
474
+ #: model:ir.model,name:account_financial_report.model_res_config_settings
475
+ msgid "Config Settings"
476
+ msgstr "Opciones de configuración"
477
+
478
+ #. module: account_financial_report
479
+ #: model_terms:ir.ui.view,arch_db:account_financial_report.res_config_settings_view_form
480
+ msgid "Configurations"
481
+ msgstr "Configuraciones"
482
+
483
+ #. module: account_financial_report
484
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__create_uid
485
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__create_uid
447
486
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__create_uid
448
487
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__create_uid
449
488
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__create_uid
@@ -454,6 +493,8 @@ msgid "Created by"
454
493
  msgstr "Creado por"
455
494
 
456
495
  #. module: account_financial_report
496
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__create_date
497
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__create_date
457
498
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__create_date
458
499
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__create_date
459
500
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__create_date
@@ -642,6 +683,8 @@ msgid "Detail Taxes"
642
683
  msgstr "Detalle de impuestos"
643
684
 
644
685
  #. module: account_financial_report
686
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__display_name
687
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__display_name
645
688
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__display_name
646
689
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__display_name
647
690
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__display_name
@@ -931,6 +974,13 @@ msgstr "Agrupar por"
931
974
  msgid "Grouped By"
932
975
  msgstr "Agrupado por"
933
976
 
977
+ #. module: account_financial_report
978
+ #: model:ir.model.fields,help:account_financial_report.field_res_company__age_partner_config_id
979
+ #: model:ir.model.fields,help:account_financial_report.field_res_config_settings__default_age_partner_config_id
980
+ #: model_terms:ir.ui.view,arch_db:account_financial_report.res_config_settings_view_form
981
+ msgid "Here you can set the intervals that will appear on the Aged Partner Balance."
982
+ msgstr "Aquí puede configurar los intervalos que aparecerán en el informe de Calidad de la deuda."
983
+
934
984
  #. module: account_financial_report
935
985
  #. odoo-python
936
986
  #: code:addons/account_financial_report/report/general_ledger_xlsx.py:0
@@ -960,6 +1010,8 @@ msgid "Hierarchy Levels to display"
960
1010
  msgstr "Niveles de Jerarquía a mostrar"
961
1011
 
962
1012
  #. module: account_financial_report
1013
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__id
1014
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__id
963
1015
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__id
964
1016
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__id
965
1017
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__id
@@ -1005,6 +1057,13 @@ msgstr ""
1005
1057
  msgid "Initial balance"
1006
1058
  msgstr "Saldo inicial"
1007
1059
 
1060
+ #. module: account_financial_report
1061
+ #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__age_partner_config_id
1062
+ #: model:ir.model.fields,field_description:account_financial_report.field_res_company__age_partner_config_id
1063
+ #: model:ir.model.fields,field_description:account_financial_report.field_res_config_settings__default_age_partner_config_id
1064
+ msgid "Intervals configuration"
1065
+ msgstr "Configuración de intervalos"
1066
+
1008
1067
  #. module: account_financial_report
1009
1068
  #. odoo-python
1010
1069
  #: code:addons/account_financial_report/report/aged_partner_balance_xlsx.py:0
@@ -1074,6 +1133,8 @@ msgid "Journals"
1074
1133
  msgstr "Diarios"
1075
1134
 
1076
1135
  #. module: account_financial_report
1136
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration____last_update
1137
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line____last_update
1077
1138
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard____last_update
1078
1139
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard____last_update
1079
1140
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard____last_update
@@ -1084,6 +1145,8 @@ msgid "Last Modified on"
1084
1145
  msgstr "Última modificación en"
1085
1146
 
1086
1147
  #. module: account_financial_report
1148
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__write_uid
1149
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__write_uid
1087
1150
  #: model:ir.model.fields,field_description:account_financial_report.field_aged_partner_balance_report_wizard__write_uid
1088
1151
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__write_uid
1089
1152
  #: model:ir.model.fields,field_description:account_financial_report.field_journal_ledger_report_wizard__write_uid
@@ -1125,6 +1188,27 @@ msgstr "Nivel %s"
1125
1188
  msgid "Limit hierarchy levels"
1126
1189
  msgstr "Limitar niveles de jerarquía"
1127
1190
 
1191
+ #. module: account_financial_report
1192
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__line_ids
1193
+ msgid "Line"
1194
+ msgstr "Línea"
1195
+
1196
+ #. module: account_financial_report
1197
+ #: code:addons/account_financial_report/models/account_age_report_configuration.py:0
1198
+ #, python-format
1199
+ msgid "Inferior Limit must be greather than zero"
1200
+ msgstr "El límite inferior debe ser mayor que cero"
1201
+
1202
+ #. module: account_financial_report
1203
+ #: model:ir.model,name:account_financial_report.model_account_age_report_configuration_line
1204
+ msgid "Model to set interval lines for Age partner balance report"
1205
+ msgstr "Modelo para establecer líneas de intervalo para el informe de Calidad de deuda"
1206
+
1207
+ #. module: account_financial_report
1208
+ #: model:ir.model,name:account_financial_report.model_account_age_report_configuration
1209
+ msgid "Model to set intervals for Age partner balance report"
1210
+ msgstr "Modelo para establecer intervalos en el informe de Calidad de deudaFalta el Socio"
1211
+
1128
1212
  #. module: account_financial_report
1129
1213
  #. odoo-python
1130
1214
  #: code:addons/account_financial_report/report/general_ledger.py:0
@@ -1144,10 +1228,19 @@ msgstr "Asiento Objetivo"
1144
1228
  msgid "Moves"
1145
1229
  msgstr "Asientos"
1146
1230
 
1231
+ #. module: account_financial_report
1232
+ #: code:addons/account_financial_report/models/account_age_report_configuration.py:0
1233
+ #, python-format
1234
+ msgid "Must complete Configuration Lines"
1235
+ msgstr "Debe completar las líneas de configuración"
1236
+
1147
1237
  #. module: account_financial_report
1148
1238
  #. odoo-python
1149
1239
  #: code:addons/account_financial_report/report/journal_ledger_xlsx.py:0
1150
1240
  #: code:addons/account_financial_report/report/vat_report_xlsx.py:0
1241
+
1242
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration__name
1243
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__name
1151
1244
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_journal_all_taxes
1152
1245
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_journal_ledger_journal_taxes
1153
1246
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_vat_report_base
@@ -1211,6 +1304,11 @@ msgstr "Sin Postear"
1211
1304
  msgid "Not due"
1212
1305
  msgstr "Deuda"
1213
1306
 
1307
+ #. module: account_financial_report
1308
+ #: model_terms:ir.ui.view,arch_db:account_financial_report.res_config_settings_view_form
1309
+ msgid "OCA Aged Report Configuration"
1310
+ msgstr "Configuración del informe Calidad de deuda OCA"
1311
+
1214
1312
  #. module: account_financial_report
1215
1313
  #: model:ir.ui.menu,name:account_financial_report.menu_oca_reports
1216
1314
  msgid "OCA accounting reports"
@@ -1513,6 +1611,11 @@ msgstr "Fecha de inicio"
1513
1611
  msgid "Starting account in a range"
1514
1612
  msgstr "Cuenta inicial en un rango"
1515
1613
 
1614
+ #. module: account_financial_report
1615
+ #: model:ir.model.fields,field_description:account_financial_report.field_account_age_report_configuration_line__inferior_limit
1616
+ msgid "Inferior Limit"
1617
+ msgstr "Límite inferior"
1618
+
1516
1619
  #. module: account_financial_report
1517
1620
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_general_ledger_lines
1518
1621
  msgid "Tags"
@@ -1,4 +1,6 @@
1
+ from . import account_age_report_configuration
1
2
  from . import account_group
2
3
  from . import account
3
4
  from . import account_move_line
4
5
  from . import ir_actions_report
6
+ from . import res_config_settings
@@ -0,0 +1,47 @@
1
+ # Copyright 2023 Ernesto García
2
+ # Copyright 2023 Carolina Fernandez
3
+ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
4
+ from odoo import _, api, fields, models
5
+ from odoo.exceptions import ValidationError
6
+
7
+
8
+ class AccountAgeReportConfiguration(models.Model):
9
+ _name = "account.age.report.configuration"
10
+ _description = "Model to set intervals for Age partner balance report"
11
+
12
+ name = fields.Char(required=True)
13
+ company_id = fields.Many2one(
14
+ "res.company", default=lambda self: self.env.company, readonly=True
15
+ )
16
+ line_ids = fields.One2many(
17
+ "account.age.report.configuration.line", "account_age_report_config_id"
18
+ )
19
+
20
+ @api.constrains("line_ids")
21
+ def _check_line_ids(self):
22
+ for rec in self:
23
+ if not rec.line_ids:
24
+ raise ValidationError(_("Must complete Configuration Lines"))
25
+
26
+
27
+ class AccountAgeReportConfigurationLine(models.Model):
28
+ _name = "account.age.report.configuration.line"
29
+ _description = "Model to set interval lines for Age partner balance report"
30
+
31
+ name = fields.Char(required=True)
32
+ account_age_report_config_id = fields.Many2one("account.age.report.configuration")
33
+ inferior_limit = fields.Integer()
34
+
35
+ @api.constrains("inferior_limit")
36
+ def _check_inferior_limit(self):
37
+ for rec in self:
38
+ if rec.inferior_limit <= 0:
39
+ raise ValidationError(_("Inferior Limit must be greather than zero"))
40
+
41
+ _sql_constraints = [
42
+ (
43
+ "unique_name_config_combination",
44
+ "UNIQUE(name,account_age_report_config_id)",
45
+ _("Name must be unique per report configuration"),
46
+ )
47
+ ]
@@ -0,0 +1,14 @@
1
+ # Copyright 2023 Tecnativa - Carolina Fernandez
2
+ # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
3
+
4
+ from odoo import fields, models
5
+
6
+
7
+ class ResConfigSettings(models.TransientModel):
8
+ _inherit = "res.config.settings"
9
+
10
+ default_age_partner_config_id = fields.Many2one(
11
+ "account.age.report.configuration",
12
+ string="Intervals configuration",
13
+ default_model="aged.partner.balance.report.wizard",
14
+ )