odoo-addon-account-financial-report 18.0.1.2.4__py3-none-any.whl → 18.0.1.2.5__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/models/account_group.py +44 -3
- odoo/addons/account_financial_report/static/description/index.html +1 -1
- odoo/addons/account_financial_report/tests/test_trial_balance.py +0 -6
- {odoo_addon_account_financial_report-18.0.1.2.4.dist-info → odoo_addon_account_financial_report-18.0.1.2.5.dist-info}/METADATA +2 -2
- {odoo_addon_account_financial_report-18.0.1.2.4.dist-info → odoo_addon_account_financial_report-18.0.1.2.5.dist-info}/RECORD +9 -9
- {odoo_addon_account_financial_report-18.0.1.2.4.dist-info → odoo_addon_account_financial_report-18.0.1.2.5.dist-info}/WHEEL +0 -0
- {odoo_addon_account_financial_report-18.0.1.2.4.dist-info → odoo_addon_account_financial_report-18.0.1.2.5.dist-info}/top_level.txt +0 -0
|
@@ -11,7 +11,7 @@ Account Financial Reports
|
|
|
11
11
|
!! This file is generated by oca-gen-addon-readme !!
|
|
12
12
|
!! changes will be overwritten. !!
|
|
13
13
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
14
|
-
!! source digest: sha256:
|
|
14
|
+
!! source digest: sha256:873b2ae0a8d222437fd05107d02825f50197239ec0838f369977d83da26b51f0
|
|
15
15
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
16
16
|
|
|
17
17
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
3
3
|
|
|
4
4
|
from odoo import api, fields, models
|
|
5
|
+
from odoo.tools import SQL
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
class AccountGroup(models.Model):
|
|
@@ -12,14 +13,17 @@ class AccountGroup(models.Model):
|
|
|
12
13
|
)
|
|
13
14
|
level = fields.Integer(compute="_compute_level", recursive=True)
|
|
14
15
|
account_ids = fields.One2many(
|
|
15
|
-
comodel_name="account.account",
|
|
16
|
+
comodel_name="account.account",
|
|
17
|
+
compute="_compute_account_ids",
|
|
18
|
+
string="Accounts",
|
|
19
|
+
store=False,
|
|
16
20
|
)
|
|
17
21
|
compute_account_ids = fields.Many2many(
|
|
18
22
|
"account.account",
|
|
19
23
|
recursive=True,
|
|
20
24
|
compute="_compute_group_accounts",
|
|
21
25
|
string="Compute accounts",
|
|
22
|
-
store=
|
|
26
|
+
store=False,
|
|
23
27
|
)
|
|
24
28
|
complete_name = fields.Char(
|
|
25
29
|
"Full Name", compute="_compute_complete_name", recursive=True
|
|
@@ -37,6 +41,44 @@ class AccountGroup(models.Model):
|
|
|
37
41
|
else:
|
|
38
42
|
group.complete_name = group.name
|
|
39
43
|
|
|
44
|
+
@api.depends("code_prefix_start", "code_prefix_end")
|
|
45
|
+
def _compute_account_ids(self):
|
|
46
|
+
"""Retrieves every account from `self`.
|
|
47
|
+
In Odoo 18 the group_id on account is not stored so it raises
|
|
48
|
+
an error the one2many account_ids with inverse name group_id."""
|
|
49
|
+
group_ids = self.ids
|
|
50
|
+
self.account_ids = self.env["account.account"]
|
|
51
|
+
if not group_ids:
|
|
52
|
+
return
|
|
53
|
+
group_ids = SQL(",".join(map(str, group_ids)))
|
|
54
|
+
results = self.env.execute_query(
|
|
55
|
+
SQL(
|
|
56
|
+
"""
|
|
57
|
+
SELECT
|
|
58
|
+
agroup.id AS group_id,
|
|
59
|
+
STRING_AGG(DISTINCT account.id::text, ', ') as account_ids
|
|
60
|
+
FROM account_group agroup
|
|
61
|
+
inner join account_account account
|
|
62
|
+
ON agroup.code_prefix_start <= LEFT(%(code_store)s->>agroup.company_id::text,
|
|
63
|
+
char_length(agroup.code_prefix_start))
|
|
64
|
+
AND agroup.code_prefix_end >= LEFT(%(code_store)s->>agroup.company_id::text,
|
|
65
|
+
char_length(agroup.code_prefix_end))
|
|
66
|
+
WHERE agroup.id IN (%(group_ids)s)
|
|
67
|
+
GROUP BY agroup.id
|
|
68
|
+
""",
|
|
69
|
+
code_store=SQL.identifier("account", "code_store"),
|
|
70
|
+
group_ids=group_ids,
|
|
71
|
+
)
|
|
72
|
+
)
|
|
73
|
+
group_by_code = dict(results)
|
|
74
|
+
if not group_by_code:
|
|
75
|
+
return
|
|
76
|
+
for record in self:
|
|
77
|
+
if group_by_code.get(record.id, ""):
|
|
78
|
+
record.account_ids = list(
|
|
79
|
+
map(int, group_by_code.get(record.id, "").split(", "))
|
|
80
|
+
)
|
|
81
|
+
|
|
40
82
|
@api.depends("code_prefix_start", "parent_id.complete_code")
|
|
41
83
|
def _compute_complete_code(self):
|
|
42
84
|
"""Forms complete code of location from parent location to child location."""
|
|
@@ -57,7 +99,6 @@ class AccountGroup(models.Model):
|
|
|
57
99
|
group.level = group.parent_id.level + 1
|
|
58
100
|
|
|
59
101
|
@api.depends(
|
|
60
|
-
"account_ids",
|
|
61
102
|
"group_child_ids.compute_account_ids",
|
|
62
103
|
)
|
|
63
104
|
def _compute_group_accounts(self):
|
|
@@ -372,7 +372,7 @@ ul.auto-toc {
|
|
|
372
372
|
!! This file is generated by oca-gen-addon-readme !!
|
|
373
373
|
!! changes will be overwritten. !!
|
|
374
374
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
375
|
-
!! source digest: sha256:
|
|
375
|
+
!! source digest: sha256:873b2ae0a8d222437fd05107d02825f50197239ec0838f369977d83da26b51f0
|
|
376
376
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
377
377
|
<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/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-financial-reporting/tree/18.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-18-0/account-financial-reporting-18-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=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
378
378
|
<p>This module adds a set of financial reports. They are accessible under
|
|
@@ -38,12 +38,10 @@ class TestTrialBalanceReport(AccountTestInvoicingCommon):
|
|
|
38
38
|
{
|
|
39
39
|
"code": "001",
|
|
40
40
|
"name": "Account 001",
|
|
41
|
-
"group_id": cls.group2.id,
|
|
42
41
|
"account_type": "income_other",
|
|
43
42
|
},
|
|
44
43
|
)
|
|
45
44
|
cls.account100 = cls.company_data["default_account_receivable"]
|
|
46
|
-
cls.account100.group_id = cls.group1.id
|
|
47
45
|
cls.account110 = cls.env["account.account"].search(
|
|
48
46
|
[
|
|
49
47
|
(
|
|
@@ -59,7 +57,6 @@ class TestTrialBalanceReport(AccountTestInvoicingCommon):
|
|
|
59
57
|
{
|
|
60
58
|
"code": "200",
|
|
61
59
|
"name": "Account 200",
|
|
62
|
-
"group_id": cls.group2.id,
|
|
63
60
|
"account_type": "income_other",
|
|
64
61
|
},
|
|
65
62
|
)
|
|
@@ -76,7 +73,6 @@ class TestTrialBalanceReport(AccountTestInvoicingCommon):
|
|
|
76
73
|
{
|
|
77
74
|
"code": "201",
|
|
78
75
|
"name": "Account 201",
|
|
79
|
-
"group_id": cls.group2.id,
|
|
80
76
|
"account_type": "income_other",
|
|
81
77
|
},
|
|
82
78
|
)
|
|
@@ -100,8 +96,6 @@ class TestTrialBalanceReport(AccountTestInvoicingCommon):
|
|
|
100
96
|
|
|
101
97
|
def _create_account_account(self, vals):
|
|
102
98
|
item = self.env["account.account"].create(vals)
|
|
103
|
-
if "group_id" in vals:
|
|
104
|
-
item.group_id = vals["group_id"]
|
|
105
99
|
return item
|
|
106
100
|
|
|
107
101
|
def _add_move(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-account_financial_report
|
|
3
|
-
Version: 18.0.1.2.
|
|
3
|
+
Version: 18.0.1.2.5
|
|
4
4
|
Requires-Python: >=3.10
|
|
5
5
|
Requires-Dist: odoo-addon-date_range==18.0.*
|
|
6
6
|
Requires-Dist: odoo-addon-report_xlsx==18.0.*
|
|
@@ -29,7 +29,7 @@ Account Financial Reports
|
|
|
29
29
|
!! This file is generated by oca-gen-addon-readme !!
|
|
30
30
|
!! changes will be overwritten. !!
|
|
31
31
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
32
|
-
!! source digest: sha256:
|
|
32
|
+
!! source digest: sha256:873b2ae0a8d222437fd05107d02825f50197239ec0838f369977d83da26b51f0
|
|
33
33
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
34
34
|
|
|
35
35
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
odoo/addons/account_financial_report/README.rst,sha256=
|
|
1
|
+
odoo/addons/account_financial_report/README.rst,sha256=rWaznqKmyxmyFDJpKrfO2NivwumI2BDAJpTHALZwGgM,7202
|
|
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=n3b1mhA7kHEfR2JgMGN2LKqHYHDWwgkIxFWwCgadv4w,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=Kj9fu5spPXthOCeQYlRHBdY8Ls6Qm3bWipqBNbuGpSw,79880
|
|
@@ -26,7 +26,7 @@ odoo/addons/account_financial_report/i18n/tr.po,sha256=zF2mLehv_kPVHIsOsyGotB6U6
|
|
|
26
26
|
odoo/addons/account_financial_report/models/__init__.py,sha256=KCE4mRzM1HSu4Mjg3thvCgBOaEyw5w8VHB--Du-wXyE,195
|
|
27
27
|
odoo/addons/account_financial_report/models/account.py,sha256=wqzI7oZ9H5XsJM6Ngo3WewQ7lExyX-fuKNzSljpj644,422
|
|
28
28
|
odoo/addons/account_financial_report/models/account_age_report_configuration.py,sha256=KiDN4CdZSJeQLU1RvGaiTqedG6Gx1LVuhA5xAib9BzM,1714
|
|
29
|
-
odoo/addons/account_financial_report/models/account_group.py,sha256=
|
|
29
|
+
odoo/addons/account_financial_report/models/account_group.py,sha256=2ZBHwtwyFiB7CpAOOLiKUB55Q-Sltss9VTG0M1bladE,3945
|
|
30
30
|
odoo/addons/account_financial_report/models/account_move_line.py,sha256=TabkIR2E0YSPkc_jgCKz6_7UOuZ0ryjYWXSwS4Ofwn0,2928
|
|
31
31
|
odoo/addons/account_financial_report/models/ir_actions_report.py,sha256=wq-rx2bpI6odJ4-PQR5aellrM9740n5WN4tf1IKdlj0,1074
|
|
32
32
|
odoo/addons/account_financial_report/models/res_config_settings.py,sha256=RquuvQgiB0-rCQuVE4uiDXSrKNqLwl_hY8jp300LzDU,1049
|
|
@@ -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=x-JWR8_yyCbMQAXQR9v2UxpTCuyJI9jc0S7v5rWn2QI,20388
|
|
65
65
|
odoo/addons/account_financial_report/static/src/css/report.css,sha256=UYlrKHXNvw3lcwlaTVNCxSQyMDi0JrizZjn4fS5cirw,2354
|
|
66
66
|
odoo/addons/account_financial_report/static/src/css/report_html.css,sha256=WO4wfg0-z87dAqLlqz1LuA_rBizNjlGnCUCeMzSSSYs,149
|
|
67
67
|
odoo/addons/account_financial_report/static/src/js/report.esm.js,sha256=bJcyov25ktGuF-eT_SUGkRLudz-6UNnKR0gmv3e-ZYc,2495
|
|
@@ -73,7 +73,7 @@ odoo/addons/account_financial_report/tests/test_aged_partner_balance.py,sha256=m
|
|
|
73
73
|
odoo/addons/account_financial_report/tests/test_general_ledger.py,sha256=eCRgwAIqG65sT37Q7udon85OH5PtHyrqBXGAFkZSAqQ,29114
|
|
74
74
|
odoo/addons/account_financial_report/tests/test_journal_ledger.py,sha256=CTMBliHQwxcJjr7bgh8TmMA3OrNxB5DhfmO6OpqjV3o,11063
|
|
75
75
|
odoo/addons/account_financial_report/tests/test_open_items.py,sha256=u_HWqxoEJiBRtacBiaHpF8ycciZVXmX_Q4qhqJUi7gg,1446
|
|
76
|
-
odoo/addons/account_financial_report/tests/test_trial_balance.py,sha256=
|
|
76
|
+
odoo/addons/account_financial_report/tests/test_trial_balance.py,sha256=x3yEtA6Djg1VMF0O6KdfH4ZT7sq6DcJQ1wm-9ThsHDY,27668
|
|
77
77
|
odoo/addons/account_financial_report/tests/test_vat_report.py,sha256=9jkMJ9A2lquVkC6x9xkmiZ8YrH4FcySUwKNZw5u5rdM,14617
|
|
78
78
|
odoo/addons/account_financial_report/view/account_age_report_configuration_views.xml,sha256=etQ_Do0Fz251A73gnWiM7lyCMKGiozIT1aU10vTs27Q,1764
|
|
79
79
|
odoo/addons/account_financial_report/view/account_view.xml,sha256=9KKmGXEEvyUygmVrWIR3rvqJICCHvbGayGwZ40tI1iA,534
|
|
@@ -98,7 +98,7 @@ odoo/addons/account_financial_report/wizard/trial_balance_wizard.py,sha256=H5DOU
|
|
|
98
98
|
odoo/addons/account_financial_report/wizard/trial_balance_wizard_view.xml,sha256=aHKMVPiQUfrpfUT0sojCfLUG38Am0DuEZSOHTPTof3k,7221
|
|
99
99
|
odoo/addons/account_financial_report/wizard/vat_report_wizard.py,sha256=SQOpKuTWKjU9F5zfc7NIG0HxhZRHt5Eullia45RA_wM,3430
|
|
100
100
|
odoo/addons/account_financial_report/wizard/vat_report_wizard_view.xml,sha256=3cJ0it2_5w20iw5x8QtTp11HoBk5kqQup6XjgJMbv7U,2274
|
|
101
|
-
odoo_addon_account_financial_report-18.0.1.2.
|
|
102
|
-
odoo_addon_account_financial_report-18.0.1.2.
|
|
103
|
-
odoo_addon_account_financial_report-18.0.1.2.
|
|
104
|
-
odoo_addon_account_financial_report-18.0.1.2.
|
|
101
|
+
odoo_addon_account_financial_report-18.0.1.2.5.dist-info/METADATA,sha256=1HnL9z5fw3H3IDb9_YXbiXzPj-BG9pMvrNhbpQnoyyc,7888
|
|
102
|
+
odoo_addon_account_financial_report-18.0.1.2.5.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
|
|
103
|
+
odoo_addon_account_financial_report-18.0.1.2.5.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
|
104
|
+
odoo_addon_account_financial_report-18.0.1.2.5.dist-info/RECORD,,
|
|
File without changes
|