odoo-addon-account-financial-report 15.0.3.0.0.1__py3-none-any.whl → 15.0.3.1.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.

@@ -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:7a729cad2177a2d79dea23692b620f65ca49b3f28348bb0f191cd074fdb4bf41
10
+ !! source digest: sha256:fa3709792bdb87d5699afcd9bcdc39c7c927bc864adcb1a08a627e88c55a4164
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |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": "15.0.3.0.0",
9
+ "version": "15.0.3.1.0",
10
10
  "category": "Reporting",
11
11
  "summary": "OCA Financial Reports",
12
12
  "author": "Camptocamp,"
@@ -1148,6 +1148,7 @@ msgstr ""
1148
1148
  #: code:addons/account_financial_report/report/open_items_xlsx.py:0
1149
1149
  #: code:addons/account_financial_report/report/trial_balance.py:0
1150
1150
  #: code:addons/account_financial_report/report/trial_balance.py:0
1151
+ #: code:addons/account_financial_report/report/trial_balance.py:0
1151
1152
  #, python-format
1152
1153
  msgid "Missing Partner"
1153
1154
  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"] and value:
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
- format_amount = "#,##0." + (
601
- "0" * line_object["currency_id"].decimal_places
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
 
@@ -215,11 +215,18 @@ class OpenItemsReport(models.AbstractModel):
215
215
 
216
216
  @api.model
217
217
  def _order_open_items_by_date(
218
- self, open_items_move_lines_data, show_partner_details, partners_data
218
+ self,
219
+ open_items_move_lines_data,
220
+ show_partner_details,
221
+ partners_data,
222
+ accounts_data,
219
223
  ):
224
+ # We need to order by account code, partner_name and date
225
+ accounts_data_sorted = sorted(accounts_data.items(), key=lambda x: x[1]["code"])
226
+ account_ids_sorted = [account[0] for account in accounts_data_sorted]
220
227
  new_open_items = {}
221
228
  if not show_partner_details:
222
- for acc_id in open_items_move_lines_data.keys():
229
+ for acc_id in account_ids_sorted:
223
230
  new_open_items[acc_id] = {}
224
231
  move_lines = []
225
232
  for prt_id in open_items_move_lines_data[acc_id]:
@@ -228,7 +235,7 @@ class OpenItemsReport(models.AbstractModel):
228
235
  move_lines = sorted(move_lines, key=lambda k: (k["date"]))
229
236
  new_open_items[acc_id] = move_lines
230
237
  else:
231
- for acc_id in open_items_move_lines_data.keys():
238
+ for acc_id in account_ids_sorted:
232
239
  new_open_items[acc_id] = {}
233
240
  for prt_id in sorted(
234
241
  open_items_move_lines_data[acc_id],
@@ -279,7 +286,10 @@ class OpenItemsReport(models.AbstractModel):
279
286
 
280
287
  total_amount = self._calculate_amounts(open_items_move_lines_data)
281
288
  open_items_move_lines_data = self._order_open_items_by_date(
282
- open_items_move_lines_data, show_partner_details, partners_data
289
+ open_items_move_lines_data,
290
+ show_partner_details,
291
+ partners_data,
292
+ accounts_data,
283
293
  )
284
294
  return {
285
295
  "doc_ids": [wizard_id],
@@ -287,6 +287,9 @@ class TrialBalanceReport(models.AbstractModel):
287
287
  total_amount[acc_id][prt_id]["ending_currency_balance"] += round(
288
288
  tb["amount_currency"], 2
289
289
  )
290
+ total_amount[acc_id][prt_id]["partner_name"] = (
291
+ tb["partner_id"][1] if tb["partner_id"] else _("Missing Partner")
292
+ )
290
293
  return total_amount
291
294
 
292
295
  @api.model
@@ -310,6 +313,7 @@ class TrialBalanceReport(models.AbstractModel):
310
313
  total_amount[acc_id][prt_id]["debit"] = tb["debit"]
311
314
  total_amount[acc_id][prt_id]["balance"] = tb["balance"]
312
315
  total_amount[acc_id][prt_id]["initial_balance"] = 0.0
316
+ total_amount[acc_id][prt_id]["partner_name"] = partners_data[prt_id]["name"]
313
317
  partners_ids.add(prt_id)
314
318
  for tb in tb_initial_prt:
315
319
  acc_id = tb["account_id"][0]
@@ -322,6 +326,18 @@ class TrialBalanceReport(models.AbstractModel):
322
326
  total_amount = self._compute_acc_prt_amount(
323
327
  total_amount, tb, acc_id, prt_id, foreign_currency
324
328
  )
329
+ # sort on partner_name
330
+ for acc_id, total_data in total_amount.items():
331
+ tmp_list = sorted(
332
+ total_data.items(),
333
+ key=lambda x: isinstance(x[0], int)
334
+ and isinstance(x[1], dict)
335
+ and x[1]["partner_name"]
336
+ or x[0],
337
+ )
338
+ total_amount[acc_id] = {}
339
+ for key, value in tmp_list:
340
+ total_amount[acc_id][key] = value
325
341
  return total_amount, partners_data
326
342
 
327
343
  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:7a729cad2177a2d79dea23692b620f65ca49b3f28348bb0f191cd074fdb4bf41
370
+ !! source digest: sha256:fa3709792bdb87d5699afcd9bcdc39c7c927bc864adcb1a08a627e88c55a4164
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/15.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-15-0/account-financial-reporting-15-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&amp;target_branch=15.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: 15.0.3.0.0.1
3
+ Version: 15.0.3.1.0
4
4
  Summary: OCA Financial Reports
5
5
  Home-page: https://github.com/OCA/account-financial-reporting
6
6
  Author: Camptocamp,initOS GmbH,redCOR AG,ForgeFlow,Odoo Community Association (OCA)
@@ -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:7a729cad2177a2d79dea23692b620f65ca49b3f28348bb0f191cd074fdb4bf41
27
+ !! source digest: sha256:fa3709792bdb87d5699afcd9bcdc39c7c927bc864adcb1a08a627e88c55a4164
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=a-YYNhmZ_7H1t7XgluNtLlch7SVLImSe0eDPv5maRyE,6889
1
+ odoo/addons/account_financial_report/README.rst,sha256=_Dj4IXtm4lkENf5k20dajRmRX_0h73yiJ-j29TDAPKI,6889
2
2
  odoo/addons/account_financial_report/__init__.py,sha256=YoL8hk5QxSifbFJL7gPzpOSk-3zB1OSHJBXyZK25G6Q,187
3
- odoo/addons/account_financial_report/__manifest__.py,sha256=G05L8B5x61L7mQ_4Ld95CKR0C_m4a2Paniq4TETkEbk,2307
3
+ odoo/addons/account_financial_report/__manifest__.py,sha256=ygDuqchPoy9G0lL9QjST8aklcoa6GEUvVa1027TDMKo,2307
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=ypCilq5ysJuqD-s7BUd2sop_UtJTD86WVpSGdUobVYI,85393
6
+ odoo/addons/account_financial_report/i18n/account_financial_report.pot,sha256=1xJDwfyAn4ULV3o6Tj0vpcIZJerwhmXfWF7tqKUskos,85459
7
7
  odoo/addons/account_financial_report/i18n/ar.po,sha256=bihZISzHhgELfeIHhrekJttgJsTq-D-3T0YAXMoxWzQ,93182
8
8
  odoo/addons/account_financial_report/i18n/ca.po,sha256=V1jky-Xj_Ju1xCS2JDSFO5rndKz43jWPY6tiyM6wYGI,90022
9
9
  odoo/addons/account_financial_report/i18n/da.po,sha256=qaMeKCi-_c7hUjsYHSm3vf-DbrhP5njy-n2waDNLGmI,89254
@@ -37,16 +37,16 @@ odoo/addons/account_financial_report/readme/HISTORY.rst,sha256=sgCgHPjX3fXH6T0yS
37
37
  odoo/addons/account_financial_report/readme/ROADMAP.rst,sha256=CK1z_cr3bdtTPHyCOXliTBkAB0rqPL_srPhIkBj-6Xw,362
38
38
  odoo/addons/account_financial_report/report/__init__.py,sha256=D-L2gAu6aAsGo9YtxVH14sulDEPHK0CEy7A2kTwewTE,618
39
39
  odoo/addons/account_financial_report/report/abstract_report.py,sha256=54-xtL4smXKwYIV9LkPS2OMbvVRTkZ-L7hXtgtOFixw,5959
40
- odoo/addons/account_financial_report/report/abstract_report_xlsx.py,sha256=ugty0nle8yhqdxCdi6aBjxEh8vN2u2KRz9hTsrpJgT0,29911
40
+ odoo/addons/account_financial_report/report/abstract_report_xlsx.py,sha256=tx3R8NNXKU6AEobYs5urvaVHNqOxXCOZTY3Rf80Ec0c,29932
41
41
  odoo/addons/account_financial_report/report/aged_partner_balance.py,sha256=p-D_r-PA8dKl0tHYawEcP5QpvjwiBq7eSQm2kRBHY-A,20848
42
42
  odoo/addons/account_financial_report/report/aged_partner_balance_xlsx.py,sha256=9xB660H5Xv8aX65oy-1gDXBSjQERIpRrlJhbtXtyToQ,14492
43
43
  odoo/addons/account_financial_report/report/general_ledger.py,sha256=wRXeQsrMlaZtGbjcSDDCyN5EjGM3Wlp4CGfmWIhcQmE,35441
44
44
  odoo/addons/account_financial_report/report/general_ledger_xlsx.py,sha256=lYk-CJ8n9H_fVOBRe6pPnqkDLibs3WIpEIptZXEX-xk,16456
45
45
  odoo/addons/account_financial_report/report/journal_ledger.py,sha256=j83-QCAONs7AAh1C3C7_3_nByKk43B7o3Atx42OhdOc,15362
46
46
  odoo/addons/account_financial_report/report/journal_ledger_xlsx.py,sha256=Pp7iDkBjSk0BqZkSPAiKI2hBHNcjKYjZoBxuL_ENz5E,10126
47
- odoo/addons/account_financial_report/report/open_items.py,sha256=7iIrnkCLuH17Lx0I98Nvt0KfYpcyhVcNRSJMr9i_PS8,13788
47
+ odoo/addons/account_financial_report/report/open_items.py,sha256=ylazC_E-iYHWdYmSz8iC2gljSvOksSdB-b0weSqF0EM,14091
48
48
  odoo/addons/account_financial_report/report/open_items_xlsx.py,sha256=a4HMQ97VkwTO_8tnxyzFIIlLkawaG1HBXnujgYUI_Ug,15119
49
- odoo/addons/account_financial_report/report/trial_balance.py,sha256=TNfnjUD0TLXmDvcj6cUHDK60EfOdtLj4PAh9zh346tg,40093
49
+ odoo/addons/account_financial_report/report/trial_balance.py,sha256=jVrUCrop4qgfu2nugeNP8g5X7pbLBU88XYCzzRXKUaY,40784
50
50
  odoo/addons/account_financial_report/report/trial_balance_xlsx.py,sha256=iGn0bVz63eMNL6Xdnjk8r4JdZrX2ojnEm9E0BaOcDoY,13278
51
51
  odoo/addons/account_financial_report/report/vat_report.py,sha256=mRr8zk3sTVvz7CFHQAzDL4Eexqzt7X6JVOEPD2axumM,10163
52
52
  odoo/addons/account_financial_report/report/vat_report_xlsx.py,sha256=aa0dLzYdywjmO63ONRYUBTpSGmsPfEjX60CkUbULuo8,2317
@@ -60,7 +60,7 @@ odoo/addons/account_financial_report/report/templates/vat_report.xml,sha256=F5hQ
60
60
  odoo/addons/account_financial_report/security/ir.model.access.csv,sha256=S1VQLLwLeaOeAMYGqtoOqHUaZVrvDUVE4Z-0-SRjSGQ,1134
61
61
  odoo/addons/account_financial_report/security/security.xml,sha256=gpNJnzruXfeYskn26FqY9U04FiuTf8vgLCKEGY8PADM,422
62
62
  odoo/addons/account_financial_report/static/description/icon.png,sha256=WW-eOIjW5-jo7tgBieNv6K2DUKMoHFSVctnp0htstHI,15230
63
- odoo/addons/account_financial_report/static/description/index.html,sha256=vnhIUbULmQnNjLhbBYoCjpvvyTuKJQa6t5Z9kmXglsI,19748
63
+ odoo/addons/account_financial_report/static/description/index.html,sha256=7JTFw2UaglotN2FhNEggVAgH9PPCdZq1bQHWZIkzv-8,19748
64
64
  odoo/addons/account_financial_report/static/src/css/report.css,sha256=y0CysZUK3afkYSHgBaMi_qmh8da3XXEZwJDjRBg6HqQ,2335
65
65
  odoo/addons/account_financial_report/static/src/css/report_html.css,sha256=I1kX1RsThtjGNLOaNJEWCvMnB9iAFW6nGkcyFYZzJoA,135
66
66
  odoo/addons/account_financial_report/static/src/js/action_manager_report.js,sha256=g8aZkSRMgNcFzQ4f_3mmeKl7oNnoap_cDUxuyGxMT4M,1608
@@ -98,7 +98,7 @@ odoo/addons/account_financial_report/wizard/trial_balance_wizard.py,sha256=rq4kn
98
98
  odoo/addons/account_financial_report/wizard/trial_balance_wizard_view.xml,sha256=kzsselPX_jYDWQEbDSXIS5K2vKuyzjTZMdinH0976c0,7413
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-15.0.3.0.0.1.dist-info/METADATA,sha256=uD3uCSE-Na9AP0qJlap5TeXjg5oVX4yLpzXrF6AbCsk,7567
102
- odoo_addon_account_financial_report-15.0.3.0.0.1.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
103
- odoo_addon_account_financial_report-15.0.3.0.0.1.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
104
- odoo_addon_account_financial_report-15.0.3.0.0.1.dist-info/RECORD,,
101
+ odoo_addon_account_financial_report-15.0.3.1.0.dist-info/METADATA,sha256=XPVj6ttbn9PG5Wvx8WzKz41pPpFHz0DzTcuYFAndmZU,7565
102
+ odoo_addon_account_financial_report-15.0.3.1.0.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
103
+ odoo_addon_account_financial_report-15.0.3.1.0.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
104
+ odoo_addon_account_financial_report-15.0.3.1.0.dist-info/RECORD,,