odoo-addon-account-financial-report 16.0.1.10.1__py3-none-any.whl → 16.0.1.11.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:ec584b1197021e99e7545e0c2c9406822757867aa4527fe4efe8dfd5f0adc0ab
10
+ !! source digest: sha256:f09700927327f126c8625b22440d66ffdf4b57ba05e681e1bc7b07537aa8ff1b
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": "16.0.1.10.1",
9
+ "version": "16.0.1.11.0",
10
10
  "category": "Reporting",
11
11
  "summary": "OCA Financial Reports",
12
12
  "author": "Camptocamp,"
@@ -1186,6 +1186,7 @@ msgstr ""
1186
1186
  #: code:addons/account_financial_report/report/open_items_xlsx.py:0
1187
1187
  #: code:addons/account_financial_report/report/trial_balance.py:0
1188
1188
  #: code:addons/account_financial_report/report/trial_balance.py:0
1189
+ #: code:addons/account_financial_report/report/trial_balance.py:0
1189
1190
  #, python-format
1190
1191
  msgid "Missing Partner"
1191
1192
  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
 
@@ -206,11 +206,18 @@ class OpenItemsReport(models.AbstractModel):
206
206
 
207
207
  @api.model
208
208
  def _order_open_items_by_date(
209
- self, open_items_move_lines_data, show_partner_details, partners_data
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 open_items_move_lines_data.keys():
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 open_items_move_lines_data.keys():
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],
@@ -265,7 +272,10 @@ class OpenItemsReport(models.AbstractModel):
265
272
 
266
273
  total_amount = self._calculate_amounts(open_items_move_lines_data)
267
274
  open_items_move_lines_data = self._order_open_items_by_date(
268
- open_items_move_lines_data, show_partner_details, partners_data
275
+ open_items_move_lines_data,
276
+ show_partner_details,
277
+ partners_data,
278
+ accounts_data,
269
279
  )
270
280
  return {
271
281
  "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:ec584b1197021e99e7545e0c2c9406822757867aa4527fe4efe8dfd5f0adc0ab
370
+ !! source digest: sha256:f09700927327f126c8625b22440d66ffdf4b57ba05e681e1bc7b07537aa8ff1b
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/16.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-16-0/account-financial-reporting-16-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=16.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: 16.0.1.10.1
3
+ Version: 16.0.1.11.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:ec584b1197021e99e7545e0c2c9406822757867aa4527fe4efe8dfd5f0adc0ab
27
+ !! source digest: sha256:f09700927327f126c8625b22440d66ffdf4b57ba05e681e1bc7b07537aa8ff1b
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=Gsx6SCca5IbHt009gD2sdw7Vv_Q0yjONmVA032BD9F0,6972
1
+ odoo/addons/account_financial_report/README.rst,sha256=YrPx_wNLKPaHficOB26yXNRvVDO0flItMU6p71yJOfA,6972
2
2
  odoo/addons/account_financial_report/__init__.py,sha256=YoL8hk5QxSifbFJL7gPzpOSk-3zB1OSHJBXyZK25G6Q,187
3
- odoo/addons/account_financial_report/__manifest__.py,sha256=DNfU9VS_yUWzar3V_qUmgc4_xypYL-n7k8DYW7Zd6dE,2062
3
+ odoo/addons/account_financial_report/__manifest__.py,sha256=GJHjQ9O_Yf4zueWs2YwqyZBf0pWxxXQa7HGoqffQ-Vc,2062
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=P1U1Mmx5c9VysiDBQ2HdYF9yDkHgc2iPwnGs1Jdbg-c,83705
6
+ odoo/addons/account_financial_report/i18n/account_financial_report.pot,sha256=bLPftbmVVx8olSZ-QCVKZQx1Io4ZfQSwhzvaCo2bWy0,83771
7
7
  odoo/addons/account_financial_report/i18n/ar.po,sha256=NZeQk53pe7f2gZvxTaLH0WANLATy_lEtA7EDITH7N1Q,91684
8
8
  odoo/addons/account_financial_report/i18n/ca.po,sha256=rrafvhfR1Y7wN6ri5539ilx-44O-NL5Z3kRdwi4_euo,90545
9
9
  odoo/addons/account_financial_report/i18n/de.po,sha256=stXVO3YQWuFlJUxaTUaF22BQAgKAyLsKpNnl1-Rifgw,94371
@@ -38,16 +38,16 @@ odoo/addons/account_financial_report/readme/HISTORY.rst,sha256=sgCgHPjX3fXH6T0yS
38
38
  odoo/addons/account_financial_report/readme/ROADMAP.rst,sha256=CK1z_cr3bdtTPHyCOXliTBkAB0rqPL_srPhIkBj-6Xw,362
39
39
  odoo/addons/account_financial_report/report/__init__.py,sha256=D-L2gAu6aAsGo9YtxVH14sulDEPHK0CEy7A2kTwewTE,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=ugty0nle8yhqdxCdi6aBjxEh8vN2u2KRz9hTsrpJgT0,29911
41
+ odoo/addons/account_financial_report/report/abstract_report_xlsx.py,sha256=tx3R8NNXKU6AEobYs5urvaVHNqOxXCOZTY3Rf80Ec0c,29932
42
42
  odoo/addons/account_financial_report/report/aged_partner_balance.py,sha256=gRk0ytj2szK4zFwEQqAVo9b4Ofc-YG7yJXeZdn3GLgs,19616
43
43
  odoo/addons/account_financial_report/report/aged_partner_balance_xlsx.py,sha256=h_z-Jw_k46SBp5tWJh8iZU83-PGmKwGDZIyFRV--FNc,14334
44
44
  odoo/addons/account_financial_report/report/general_ledger.py,sha256=is5PS0xS63Us_hw0qXQpw_koxroMkcLD6nDjIkTyNSA,34934
45
45
  odoo/addons/account_financial_report/report/general_ledger_xlsx.py,sha256=_g7aNXL0yier8i4HwMCcWpZOtI3BuIBJxUJJWsyWp5g,17278
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=Pp7iDkBjSk0BqZkSPAiKI2hBHNcjKYjZoBxuL_ENz5E,10126
48
- odoo/addons/account_financial_report/report/open_items.py,sha256=JND4C0oixuL7cc45kVj5tc4ysivHQJguEPcX_ebviWI,12258
48
+ odoo/addons/account_financial_report/report/open_items.py,sha256=JjPpILfCbXf1Dx8JB_K8Muy2uGkfchh802Ghr2EoN0c,12561
49
49
  odoo/addons/account_financial_report/report/open_items_xlsx.py,sha256=iv32561UaRppS5XyclMnYwLHJ2icYUA1hNeUOkcl8ng,14960
50
- odoo/addons/account_financial_report/report/trial_balance.py,sha256=GcvZQ9tET2CHEdFbtuTuwAE9T-c89MP-fX7IXr_B3zA,31411
50
+ odoo/addons/account_financial_report/report/trial_balance.py,sha256=nW9EGutFp3X9-uYniYZtta3xXl4PwWtgmLDQ7KE4vPQ,32102
51
51
  odoo/addons/account_financial_report/report/trial_balance_xlsx.py,sha256=phPDqy4pXbd94oFmwjPNe_XKoMCgcTXPE6HOkGJJDko,12060
52
52
  odoo/addons/account_financial_report/report/vat_report.py,sha256=pDwcCqbWTOveJD6GbOwJxU35kt8gMnzZ0rbRu2_h3KI,10317
53
53
  odoo/addons/account_financial_report/report/vat_report_xlsx.py,sha256=aa0dLzYdywjmO63ONRYUBTpSGmsPfEjX60CkUbULuo8,2317
@@ -61,7 +61,7 @@ odoo/addons/account_financial_report/report/templates/vat_report.xml,sha256=-xlv
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=gpNJnzruXfeYskn26FqY9U04FiuTf8vgLCKEGY8PADM,422
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=t5ARB43-znx-SJ0CW_F0lAh_E8CJDPlfmafGFiRmfjo,20035
64
+ odoo/addons/account_financial_report/static/description/index.html,sha256=yGTSdbm4-LCrJ8yb9VrxkEG5E7Cnv6YaFSBMq3Qehr0,20035
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=k4SVH
98
98
  odoo/addons/account_financial_report/wizard/trial_balance_wizard_view.xml,sha256=7oNGPs3s8DVw3movVGe2ryRUNl1MtN7O76UH8zaFFtI,7048
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-16.0.1.10.1.dist-info/METADATA,sha256=vvG5RYlLjxYfvi30yBP1vwGH5R2XupwpVvEtt5Y6Cmc,7650
102
- odoo_addon_account_financial_report-16.0.1.10.1.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
103
- odoo_addon_account_financial_report-16.0.1.10.1.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
104
- odoo_addon_account_financial_report-16.0.1.10.1.dist-info/RECORD,,
101
+ odoo_addon_account_financial_report-16.0.1.11.0.dist-info/METADATA,sha256=tfnTO2AbMLieBY0JHBbhH_xUkmINxcN6Q_aZtylamco,7650
102
+ odoo_addon_account_financial_report-16.0.1.11.0.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
103
+ odoo_addon_account_financial_report-16.0.1.11.0.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
104
+ odoo_addon_account_financial_report-16.0.1.11.0.dist-info/RECORD,,