odoo-addon-account-financial-report 17.0.1.3.1__py3-none-any.whl → 17.0.1.4.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.
- odoo/addons/account_financial_report/README.rst +1 -1
- odoo/addons/account_financial_report/__manifest__.py +1 -1
- odoo/addons/account_financial_report/i18n/account_financial_report.pot +1 -0
- odoo/addons/account_financial_report/report/abstract_report_xlsx.py +3 -4
- odoo/addons/account_financial_report/report/open_items.py +14 -4
- odoo/addons/account_financial_report/report/trial_balance.py +16 -0
- odoo/addons/account_financial_report/static/description/index.html +1 -1
- {odoo_addon_account_financial_report-17.0.1.3.1.dist-info → odoo_addon_account_financial_report-17.0.1.4.0.dist-info}/METADATA +2 -2
- {odoo_addon_account_financial_report-17.0.1.3.1.dist-info → odoo_addon_account_financial_report-17.0.1.4.0.dist-info}/RECORD +11 -11
- {odoo_addon_account_financial_report-17.0.1.3.1.dist-info → odoo_addon_account_financial_report-17.0.1.4.0.dist-info}/WHEEL +0 -0
- {odoo_addon_account_financial_report-17.0.1.3.1.dist-info → odoo_addon_account_financial_report-17.0.1.4.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:
|
|
10
|
+
!! source digest: sha256:4dd0964e1e5bccd75c7c56d0b89bd21f35a0f176bd7b9b69aaebb7db4f3bd729
|
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
12
|
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -1171,6 +1171,7 @@ msgstr ""
|
|
|
1171
1171
|
#: code:addons/account_financial_report/report/open_items.py:0
|
|
1172
1172
|
#: code:addons/account_financial_report/report/trial_balance.py:0
|
|
1173
1173
|
#: code:addons/account_financial_report/report/trial_balance.py:0
|
|
1174
|
+
#: code:addons/account_financial_report/report/trial_balance.py:0
|
|
1174
1175
|
#, python-format
|
|
1175
1176
|
msgid "Missing Partner"
|
|
1176
1177
|
msgstr ""
|
|
@@ -496,7 +496,7 @@ class AbstractReportXslx(models.AbstractModel):
|
|
|
496
496
|
report_data["formats"]["format_header_amount"],
|
|
497
497
|
)
|
|
498
498
|
elif cell_type == "amount_currency":
|
|
499
|
-
if my_object["currency_id"]
|
|
499
|
+
if my_object["currency_id"]:
|
|
500
500
|
format_amt = self._get_currency_amt_format_dict(
|
|
501
501
|
my_object, report_data
|
|
502
502
|
)
|
|
@@ -597,9 +597,8 @@ class AbstractReportXslx(models.AbstractModel):
|
|
|
597
597
|
{"bold": True, "border": True, "bg_color": "#FFFFCC"}
|
|
598
598
|
)
|
|
599
599
|
report_data["field_name"] = format_amt
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
)
|
|
600
|
+
currency = self.env["res.currency"].browse(line_object["currency_id"])
|
|
601
|
+
format_amount = "#,##0." + ("0" * currency.decimal_places)
|
|
603
602
|
format_amt.set_num_format(format_amount)
|
|
604
603
|
return format_amt
|
|
605
604
|
|
|
@@ -206,11 +206,18 @@ class OpenItemsReport(models.AbstractModel):
|
|
|
206
206
|
|
|
207
207
|
@api.model
|
|
208
208
|
def _order_open_items_by_date(
|
|
209
|
-
self,
|
|
209
|
+
self,
|
|
210
|
+
open_items_move_lines_data,
|
|
211
|
+
show_partner_details,
|
|
212
|
+
partners_data,
|
|
213
|
+
accounts_data,
|
|
210
214
|
):
|
|
215
|
+
# We need to order by account code, partner_name and date
|
|
216
|
+
accounts_data_sorted = sorted(accounts_data.items(), key=lambda x: x[1]["code"])
|
|
217
|
+
account_ids_sorted = [account[0] for account in accounts_data_sorted]
|
|
211
218
|
new_open_items = {}
|
|
212
219
|
if not show_partner_details:
|
|
213
|
-
for acc_id in
|
|
220
|
+
for acc_id in account_ids_sorted:
|
|
214
221
|
new_open_items[acc_id] = {}
|
|
215
222
|
move_lines = []
|
|
216
223
|
for prt_id in open_items_move_lines_data[acc_id]:
|
|
@@ -219,7 +226,7 @@ class OpenItemsReport(models.AbstractModel):
|
|
|
219
226
|
move_lines = sorted(move_lines, key=lambda k: (k["date"]))
|
|
220
227
|
new_open_items[acc_id] = move_lines
|
|
221
228
|
else:
|
|
222
|
-
for acc_id in
|
|
229
|
+
for acc_id in account_ids_sorted:
|
|
223
230
|
new_open_items[acc_id] = {}
|
|
224
231
|
for prt_id in sorted(
|
|
225
232
|
open_items_move_lines_data[acc_id],
|
|
@@ -262,7 +269,10 @@ class OpenItemsReport(models.AbstractModel):
|
|
|
262
269
|
|
|
263
270
|
total_amount = self._calculate_amounts(open_items_move_lines_data)
|
|
264
271
|
open_items_move_lines_data = self._order_open_items_by_date(
|
|
265
|
-
open_items_move_lines_data,
|
|
272
|
+
open_items_move_lines_data,
|
|
273
|
+
show_partner_details,
|
|
274
|
+
partners_data,
|
|
275
|
+
accounts_data,
|
|
266
276
|
)
|
|
267
277
|
return {
|
|
268
278
|
"doc_ids": [wizard_id],
|
|
@@ -270,6 +270,9 @@ class TrialBalanceReport(models.AbstractModel):
|
|
|
270
270
|
total_amount[acc_id][prt_id]["ending_currency_balance"] += round(
|
|
271
271
|
tb["amount_currency"], 2
|
|
272
272
|
)
|
|
273
|
+
total_amount[acc_id][prt_id]["partner_name"] = (
|
|
274
|
+
tb["partner_id"][1] if tb["partner_id"] else _("Missing Partner")
|
|
275
|
+
)
|
|
273
276
|
return total_amount
|
|
274
277
|
|
|
275
278
|
@api.model
|
|
@@ -293,6 +296,7 @@ class TrialBalanceReport(models.AbstractModel):
|
|
|
293
296
|
total_amount[acc_id][prt_id]["debit"] = tb["debit"]
|
|
294
297
|
total_amount[acc_id][prt_id]["balance"] = tb["balance"]
|
|
295
298
|
total_amount[acc_id][prt_id]["initial_balance"] = 0.0
|
|
299
|
+
total_amount[acc_id][prt_id]["partner_name"] = partners_data[prt_id]["name"]
|
|
296
300
|
partners_ids.add(prt_id)
|
|
297
301
|
for tb in tb_initial_prt:
|
|
298
302
|
acc_id = tb["account_id"][0]
|
|
@@ -305,6 +309,18 @@ class TrialBalanceReport(models.AbstractModel):
|
|
|
305
309
|
total_amount = self._compute_acc_prt_amount(
|
|
306
310
|
total_amount, tb, acc_id, prt_id, foreign_currency
|
|
307
311
|
)
|
|
312
|
+
# sort on partner_name
|
|
313
|
+
for acc_id, total_data in total_amount.items():
|
|
314
|
+
tmp_list = sorted(
|
|
315
|
+
total_data.items(),
|
|
316
|
+
key=lambda x: isinstance(x[0], int)
|
|
317
|
+
and isinstance(x[1], dict)
|
|
318
|
+
and x[1]["partner_name"]
|
|
319
|
+
or x[0],
|
|
320
|
+
)
|
|
321
|
+
total_amount[acc_id] = {}
|
|
322
|
+
for key, value in tmp_list:
|
|
323
|
+
total_amount[acc_id][key] = value
|
|
308
324
|
return total_amount, partners_data
|
|
309
325
|
|
|
310
326
|
def _remove_accounts_at_cero(self, total_amount, show_partner_details, company):
|
|
@@ -367,7 +367,7 @@ ul.auto-toc {
|
|
|
367
367
|
!! This file is generated by oca-gen-addon-readme !!
|
|
368
368
|
!! changes will be overwritten. !!
|
|
369
369
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
370
|
-
!! source digest: sha256:
|
|
370
|
+
!! source digest: sha256:4dd0964e1e5bccd75c7c56d0b89bd21f35a0f176bd7b9b69aaebb7db4f3bd729
|
|
371
371
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
372
372
|
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-financial-reporting/tree/17.0/account_financial_report"><img alt="OCA/account-financial-reporting" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--reporting-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-financial-reporting-17-0/account-financial-reporting-17-0-account_financial_report"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/account-financial-reporting&target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
373
373
|
<p>This module adds a set of financial reports. They are accessible under
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-account_financial_report
|
|
3
|
-
Version: 17.0.1.
|
|
3
|
+
Version: 17.0.1.4.0
|
|
4
4
|
Requires-Python: >=3.10
|
|
5
5
|
Requires-Dist: odoo-addon-date_range>=17.0dev,<17.1dev
|
|
6
6
|
Requires-Dist: odoo-addon-report_xlsx>=17.0dev,<17.1dev
|
|
@@ -24,7 +24,7 @@ Account Financial Reports
|
|
|
24
24
|
!! This file is generated by oca-gen-addon-readme !!
|
|
25
25
|
!! changes will be overwritten. !!
|
|
26
26
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
27
|
-
!! source digest: sha256:
|
|
27
|
+
!! source digest: sha256:4dd0964e1e5bccd75c7c56d0b89bd21f35a0f176bd7b9b69aaebb7db4f3bd729
|
|
28
28
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
29
29
|
|
|
30
30
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
odoo/addons/account_financial_report/README.rst,sha256=
|
|
1
|
+
odoo/addons/account_financial_report/README.rst,sha256=NNIl5ewRdrUGNSt-D8RvCL-_4-cbFS7JOtOK0YizHak,6949
|
|
2
2
|
odoo/addons/account_financial_report/__init__.py,sha256=YoL8hk5QxSifbFJL7gPzpOSk-3zB1OSHJBXyZK25G6Q,187
|
|
3
|
-
odoo/addons/account_financial_report/__manifest__.py,sha256=
|
|
3
|
+
odoo/addons/account_financial_report/__manifest__.py,sha256=FcQQYjzvPOOSX_Zef37bBxVrabTWwDf4Vxau3ZpZxy0,2061
|
|
4
4
|
odoo/addons/account_financial_report/menuitems.xml,sha256=k20N6cNRlDsnPhc378MVs7jwzJhbbJQ2k-P3WdsmF_M,1206
|
|
5
5
|
odoo/addons/account_financial_report/reports.xml,sha256=c2KamS250rNzHUInjNwC0G2dhwiIqtYgbked51PtmVw,9254
|
|
6
|
-
odoo/addons/account_financial_report/i18n/account_financial_report.pot,sha256=
|
|
6
|
+
odoo/addons/account_financial_report/i18n/account_financial_report.pot,sha256=rEuc-R3lkOS3hEbLoR8Ja2BgKYQIPgCxkGsh9kbniPM,81999
|
|
7
7
|
odoo/addons/account_financial_report/i18n/ar.po,sha256=kB3FxLaMBJfgiZh58x3M7jtbc_H8QoOQDBsymZ7ZuQ8,90247
|
|
8
8
|
odoo/addons/account_financial_report/i18n/ca.po,sha256=0XI9oBHiwBwj0JThhCnZ0QVX6jBQkU_EZE54X0LXj2E,87050
|
|
9
9
|
odoo/addons/account_financial_report/i18n/de.po,sha256=ioa7EX0xQijfCSWfyIWWb6Rm2APLqc17ASRsamnPz60,92934
|
|
@@ -38,16 +38,16 @@ odoo/addons/account_financial_report/readme/HISTORY.md,sha256=5PzKD9lPwX_nKEaZRw
|
|
|
38
38
|
odoo/addons/account_financial_report/readme/ROADMAP.md,sha256=kZqiEvRk8A3A47ZIh-OiAtqgaPpxO6ul0P60oCEg8Qg,360
|
|
39
39
|
odoo/addons/account_financial_report/report/__init__.py,sha256=A-DcPm9nBQnH58gXR3H4kQoHF0pKAjLUnPnXl1RQqng,618
|
|
40
40
|
odoo/addons/account_financial_report/report/abstract_report.py,sha256=54-xtL4smXKwYIV9LkPS2OMbvVRTkZ-L7hXtgtOFixw,5959
|
|
41
|
-
odoo/addons/account_financial_report/report/abstract_report_xlsx.py,sha256
|
|
41
|
+
odoo/addons/account_financial_report/report/abstract_report_xlsx.py,sha256=QILq6AACBxyC8Mnyz9Jj9OAEn2NySRzQMndxCwfxG2M,29912
|
|
42
42
|
odoo/addons/account_financial_report/report/aged_partner_balance.py,sha256=gyCJ4lEROzfDjsgFi7fGan2XTxLmDhKOj5ta9qXVXtk,19979
|
|
43
43
|
odoo/addons/account_financial_report/report/aged_partner_balance_xlsx.py,sha256=DzOfIfKJ7a6lExmjACLN0JI0t1nEtsCY-N0HHbv_5Nw,14276
|
|
44
44
|
odoo/addons/account_financial_report/report/general_ledger.py,sha256=GM_RoxP_7p4lXDVJxqx6s6g8N_8bSY49MXs7gkXAcus,34835
|
|
45
45
|
odoo/addons/account_financial_report/report/general_ledger_xlsx.py,sha256=qn89GrGmpsEQoC6eBFbXImYfxQq-_OpgzXL5hF1LgqM,17268
|
|
46
46
|
odoo/addons/account_financial_report/report/journal_ledger.py,sha256=5_w9CmKy_eZNgJsSL1TFTTe5b3DBBEY1qmseI1RuGPI,15424
|
|
47
47
|
odoo/addons/account_financial_report/report/journal_ledger_xlsx.py,sha256=kY6c-56HHauIyHAc7q5iNerz0gJQrp4ahI4OB1XeCT8,10060
|
|
48
|
-
odoo/addons/account_financial_report/report/open_items.py,sha256=
|
|
48
|
+
odoo/addons/account_financial_report/report/open_items.py,sha256=kRM1kI17LI_LUj3zDFf4zxMtrqDXZAO9fbBAczr04PA,12218
|
|
49
49
|
odoo/addons/account_financial_report/report/open_items_xlsx.py,sha256=ERlxxsY2ERTimVEpskyp_XdsNuRW0XcFih7pJ2VF914,8366
|
|
50
|
-
odoo/addons/account_financial_report/report/trial_balance.py,sha256=
|
|
50
|
+
odoo/addons/account_financial_report/report/trial_balance.py,sha256=Gg8x4JLw-CWRJx4eljA5iNcdbsj0f4zbKieQkHBWYLM,32102
|
|
51
51
|
odoo/addons/account_financial_report/report/trial_balance_xlsx.py,sha256=-DcUdiCPAD9uXB1VsfN3EsPJHxgltz246zAUqV_zCxA,12028
|
|
52
52
|
odoo/addons/account_financial_report/report/vat_report.py,sha256=eLWr9mk1bOQUPH4FEGDssfhqEfAeZUJV5ryCf8YYea0,10117
|
|
53
53
|
odoo/addons/account_financial_report/report/vat_report_xlsx.py,sha256=ksdmiHDQZBBtk8fqkxSAS6-nFIyhT-wue4OTSV6xW9c,2307
|
|
@@ -61,7 +61,7 @@ odoo/addons/account_financial_report/report/templates/vat_report.xml,sha256=2WeL
|
|
|
61
61
|
odoo/addons/account_financial_report/security/ir.model.access.csv,sha256=S1VQLLwLeaOeAMYGqtoOqHUaZVrvDUVE4Z-0-SRjSGQ,1134
|
|
62
62
|
odoo/addons/account_financial_report/security/security.xml,sha256=YQCXbOuTGHCWGYwGnXMie_0tnWG5zYJGdoeey3o1xaw,382
|
|
63
63
|
odoo/addons/account_financial_report/static/description/icon.png,sha256=WW-eOIjW5-jo7tgBieNv6K2DUKMoHFSVctnp0htstHI,15230
|
|
64
|
-
odoo/addons/account_financial_report/static/description/index.html,sha256=
|
|
64
|
+
odoo/addons/account_financial_report/static/description/index.html,sha256=YKvaBl-qmf7Ve33XNph0k600k8nfXGK70DJgoQWhHWo,19748
|
|
65
65
|
odoo/addons/account_financial_report/static/src/css/report.css,sha256=Cu4VmyY5tVXIddaojFDsg0Ute2qPCvKbLiimak_X9ik,2361
|
|
66
66
|
odoo/addons/account_financial_report/static/src/css/report_html.css,sha256=I1kX1RsThtjGNLOaNJEWCvMnB9iAFW6nGkcyFYZzJoA,135
|
|
67
67
|
odoo/addons/account_financial_report/static/src/js/report.esm.js,sha256=He488vLRaLv6IIuVaNSnNl8kJMIwJmMIv7GkmXyPJZs,2475
|
|
@@ -98,7 +98,7 @@ odoo/addons/account_financial_report/wizard/trial_balance_wizard.py,sha256=zTC-j
|
|
|
98
98
|
odoo/addons/account_financial_report/wizard/trial_balance_wizard_view.xml,sha256=HmwfFnzmQvw0wOILH2J1kY3aM8IGZKMBa7CHmMOigiQ,6577
|
|
99
99
|
odoo/addons/account_financial_report/wizard/vat_report_wizard.py,sha256=pJATDNWLcEWvctby5e5yvv4Kz7YDfCTi7YZP7slA8a4,3424
|
|
100
100
|
odoo/addons/account_financial_report/wizard/vat_report_wizard_view.xml,sha256=T3P81O4csDGP7Jmf7eAtmbIIldja3IoXbBmweMMt8vA,2330
|
|
101
|
-
odoo_addon_account_financial_report-17.0.1.
|
|
102
|
-
odoo_addon_account_financial_report-17.0.1.
|
|
103
|
-
odoo_addon_account_financial_report-17.0.1.
|
|
104
|
-
odoo_addon_account_financial_report-17.0.1.
|
|
101
|
+
odoo_addon_account_financial_report-17.0.1.4.0.dist-info/METADATA,sha256=80qUbV8X-tTtbewJIXZmf034sa9o4VfQyMsdechqv14,7626
|
|
102
|
+
odoo_addon_account_financial_report-17.0.1.4.0.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
|
103
|
+
odoo_addon_account_financial_report-17.0.1.4.0.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
|
104
|
+
odoo_addon_account_financial_report-17.0.1.4.0.dist-info/RECORD,,
|
|
File without changes
|