odoo-addon-account-financial-report 17.0.1.2.2.1__py3-none-any.whl → 17.0.1.2.3__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:2cfcb2789ca53b3e10e1577d755411be40b91c53c173201d09636390ee996722
10
+ !! source digest: sha256:31d7d26b863b281d8b3b14da074f1370a85a46bcd649265be5eea5b4cff114e9
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": "17.0.1.2.2",
9
+ "version": "17.0.1.2.3",
10
10
  "category": "Reporting",
11
11
  "summary": "OCA Financial Reports",
12
12
  "author": "Camptocamp,"
@@ -3,6 +3,7 @@
3
3
  from collections import defaultdict
4
4
 
5
5
  from odoo import api, fields, models
6
+ from odoo.fields import Command
6
7
 
7
8
 
8
9
  class AccountMoveLine(models.Model):
@@ -15,25 +16,25 @@ class AccountMoveLine(models.Model):
15
16
  @api.depends("analytic_distribution")
16
17
  def _compute_analytic_account_ids(self):
17
18
  # Prefetch all involved analytic accounts
18
- with_distribution = self.filtered("analytic_distribution")
19
- batch_by_analytic_account = defaultdict(list)
20
- for record in with_distribution:
21
- for account_id in map(int, record.analytic_distribution):
22
- batch_by_analytic_account[account_id].append(record.id)
19
+ batch_by_analytic_account = defaultdict(lambda: self.env["account.move.line"])
20
+ for record in self.filtered("analytic_distribution"):
21
+ # NB: ``analytic_distribution`` is a JSON field where keys can be either
22
+ # 'account.id' or 'account.id,account.id'
23
+ # Eg: https://github.com/odoo/odoo/blob/8479b4e/addons/sale/models/account_move_line.py#L158
24
+ for key in record.analytic_distribution:
25
+ for account_id in map(int, key.split(",")):
26
+ batch_by_analytic_account[account_id] += record
23
27
  existing_account_ids = set(
24
28
  self.env["account.analytic.account"]
25
- .browse(map(int, batch_by_analytic_account))
29
+ .browse(batch_by_analytic_account)
26
30
  .exists()
27
31
  .ids
28
32
  )
29
33
  # Store them
30
- self.analytic_account_ids = False
31
- for account_id, record_ids in batch_by_analytic_account.items():
32
- if account_id not in existing_account_ids:
33
- continue
34
- self.browse(record_ids).analytic_account_ids = [
35
- fields.Command.link(account_id)
36
- ]
34
+ self.analytic_account_ids = [Command.clear()]
35
+ for account_id, records in batch_by_analytic_account.items():
36
+ if account_id in existing_account_ids:
37
+ records.analytic_account_ids = [Command.link(account_id)]
37
38
 
38
39
  def init(self):
39
40
  """
@@ -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:2cfcb2789ca53b3e10e1577d755411be40b91c53c173201d09636390ee996722
370
+ !! source digest: sha256:31d7d26b863b281d8b3b14da074f1370a85a46bcd649265be5eea5b4cff114e9
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&amp;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.2.2.1
3
+ Version: 17.0.1.2.3
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:2cfcb2789ca53b3e10e1577d755411be40b91c53c173201d09636390ee996722
27
+ !! source digest: sha256:31d7d26b863b281d8b3b14da074f1370a85a46bcd649265be5eea5b4cff114e9
28
28
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29
29
 
30
30
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -1,6 +1,6 @@
1
- odoo/addons/account_financial_report/README.rst,sha256=Soot57KoFz9dx52Vh0-lG9oGAD4hjNRGd0P5Yji_ON0,6949
1
+ odoo/addons/account_financial_report/README.rst,sha256=AJnAVyh7-vN2e6OGSE3sNEZw8dA46DSFv3GFFfAyGho,6949
2
2
  odoo/addons/account_financial_report/__init__.py,sha256=YoL8hk5QxSifbFJL7gPzpOSk-3zB1OSHJBXyZK25G6Q,187
3
- odoo/addons/account_financial_report/__manifest__.py,sha256=lnXzZoEUqeeLX4m-jcIdzxC9kFsIPhRDoOjzb2v3OMY,2061
3
+ odoo/addons/account_financial_report/__manifest__.py,sha256=_-BzuBk4RJbq6pMzMFYgGaW-tMMv38kvg-IBVu1cBVk,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
6
  odoo/addons/account_financial_report/i18n/account_financial_report.pot,sha256=3u0yX4w7rqGFyV0MgNO0c3GW8PwiSoezcKTTS4OUT_g,81933
@@ -28,7 +28,7 @@ odoo/addons/account_financial_report/models/__init__.py,sha256=KCE4mRzM1HSu4Mjg3
28
28
  odoo/addons/account_financial_report/models/account.py,sha256=OCWn264dEtfxbV0rVKR1dqz38Jy3SoS_9XZ0ChK_7eA,422
29
29
  odoo/addons/account_financial_report/models/account_age_report_configuration.py,sha256=U5Xr0uAD696TohTCkKsY3HZDYAfVrlocTIGYzr2JlkA,1664
30
30
  odoo/addons/account_financial_report/models/account_group.py,sha256=q0RpVwqZQiSFoQ03ltTe6XEokIa2f1qLAfuPCJgQ_iY,2385
31
- odoo/addons/account_financial_report/models/account_move_line.py,sha256=LNjmv_T5jhmiuVxMlNrEMKSULDGfJ0kznsYo1UJ-x1A,2705
31
+ odoo/addons/account_financial_report/models/account_move_line.py,sha256=TabkIR2E0YSPkc_jgCKz6_7UOuZ0ryjYWXSwS4Ofwn0,2928
32
32
  odoo/addons/account_financial_report/models/ir_actions_report.py,sha256=wq-rx2bpI6odJ4-PQR5aellrM9740n5WN4tf1IKdlj0,1074
33
33
  odoo/addons/account_financial_report/models/res_config_settings.py,sha256=7b6qOl9jmC-eJF8vTA9wbefs6C8cn_Jp8hJBq_o6mvk,443
34
34
  odoo/addons/account_financial_report/readme/CONFIGURE.md,sha256=gTsDroUsSEy4stKQpIO7Y3inHh8YClbJ634HY7vREUg,901
@@ -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=npTZgmgkcngN3tD_cj8j2KIaour2HNm08wRMcvxIXLg,19748
64
+ odoo/addons/account_financial_report/static/description/index.html,sha256=6bQhUCefkw7b73lJhFL-qNfLoFN6hn7IWMShOStKE60,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.2.2.1.dist-info/METADATA,sha256=jL-yMdZZXvtTYeZxZSf_7Kr0GaACaSbi6tzzIcNkQLg,7628
102
- odoo_addon_account_financial_report-17.0.1.2.2.1.dist-info/WHEEL,sha256=8Rd4enx1PCuyDWP4SABqO5Fv8rpaknqp3VzjoFFLa6c,83
103
- odoo_addon_account_financial_report-17.0.1.2.2.1.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
104
- odoo_addon_account_financial_report-17.0.1.2.2.1.dist-info/RECORD,,
101
+ odoo_addon_account_financial_report-17.0.1.2.3.dist-info/METADATA,sha256=KO--wB0aT1JhiwqfqsyyH-8nn-0m22ufpa86T8Uuq8A,7626
102
+ odoo_addon_account_financial_report-17.0.1.2.3.dist-info/WHEEL,sha256=8Rd4enx1PCuyDWP4SABqO5Fv8rpaknqp3VzjoFFLa6c,83
103
+ odoo_addon_account_financial_report-17.0.1.2.3.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
104
+ odoo_addon_account_financial_report-17.0.1.2.3.dist-info/RECORD,,