odoo-addon-account-analytic-parent 17.0.1.0.0.10__py3-none-any.whl → 18.0.1.0.0.2__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.
- odoo/addons/account_analytic_parent/README.rst +22 -19
- odoo/addons/account_analytic_parent/__manifest__.py +1 -1
- odoo/addons/account_analytic_parent/i18n/account_analytic_parent.pot +1 -5
- odoo/addons/account_analytic_parent/models/account_analytic_account.py +3 -4
- odoo/addons/account_analytic_parent/readme/CONTRIBUTORS.md +2 -0
- odoo/addons/account_analytic_parent/static/description/index.html +15 -8
- odoo/addons/account_analytic_parent/tests/test_account_analytic_account.py +36 -31
- {odoo_addon_account_analytic_parent-17.0.1.0.0.10.dist-info → odoo_addon_account_analytic_parent-18.0.1.0.0.2.dist-info}/METADATA +25 -22
- {odoo_addon_account_analytic_parent-17.0.1.0.0.10.dist-info → odoo_addon_account_analytic_parent-18.0.1.0.0.2.dist-info}/RECORD +11 -11
- {odoo_addon_account_analytic_parent-17.0.1.0.0.10.dist-info → odoo_addon_account_analytic_parent-18.0.1.0.0.2.dist-info}/WHEEL +1 -1
- {odoo_addon_account_analytic_parent-17.0.1.0.0.10.dist-info → odoo_addon_account_analytic_parent-18.0.1.0.0.2.dist-info}/top_level.txt +0 -0
|
@@ -7,7 +7,7 @@ Account Analytic Parent
|
|
|
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:130fc29d40388ceca1e2d2826e72d95dc9dbba3f8a7e757d2dd954f00f2cd6f9
|
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
12
|
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -17,13 +17,13 @@ Account Analytic Parent
|
|
|
17
17
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
|
18
18
|
:alt: License: AGPL-3
|
|
19
19
|
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--analytic-lightgray.png?logo=github
|
|
20
|
-
:target: https://github.com/OCA/account-analytic/tree/
|
|
20
|
+
:target: https://github.com/OCA/account-analytic/tree/18.0/account_analytic_parent
|
|
21
21
|
:alt: OCA/account-analytic
|
|
22
22
|
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
|
23
|
-
:target: https://translation.odoo-community.org/projects/account-analytic-
|
|
23
|
+
:target: https://translation.odoo-community.org/projects/account-analytic-18-0/account-analytic-18-0-account_analytic_parent
|
|
24
24
|
:alt: Translate me on Weblate
|
|
25
25
|
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
|
26
|
-
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-analytic&target_branch=
|
|
26
|
+
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-analytic&target_branch=18.0
|
|
27
27
|
:alt: Try me on Runboat
|
|
28
28
|
|
|
29
29
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|
@@ -49,7 +49,7 @@ Bug Tracker
|
|
|
49
49
|
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-analytic/issues>`_.
|
|
50
50
|
In case of trouble, please check there if your issue has already been reported.
|
|
51
51
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
52
|
-
`feedback <https://github.com/OCA/account-analytic/issues/new?body=module:%20account_analytic_parent%0Aversion:%
|
|
52
|
+
`feedback <https://github.com/OCA/account-analytic/issues/new?body=module:%20account_analytic_parent%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
|
53
53
|
|
|
54
54
|
Do not contact contributors directly about support or help with technical issues.
|
|
55
55
|
|
|
@@ -69,21 +69,24 @@ Authors
|
|
|
69
69
|
Contributors
|
|
70
70
|
------------
|
|
71
71
|
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
79
|
-
-
|
|
80
|
-
-
|
|
81
|
-
-
|
|
72
|
+
- ForgeFlow <http://www.forgeflow.com>
|
|
73
|
+
- Luxim d.o.o. <http://www.luxim.si>
|
|
74
|
+
- Matmoz d.o.o. <http://www.matmoz.si>
|
|
75
|
+
- Deneroteam. <dhaval@deneroteam.com>
|
|
76
|
+
- SerpentCS <http://www.serpentcs.com/>
|
|
77
|
+
- Pedro M. Baeza <pedro.baeza@tecnativa.com>
|
|
78
|
+
- Vicent Cubells <vicent.cubells@tecnativa.com>
|
|
79
|
+
- David Vidal <david.vidal@tecnativa.com>
|
|
80
|
+
- Jaume Planas <jaume.planas@minorisa.net>
|
|
81
|
+
- `CorporateHub <https://corporatehub.eu/>`__
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
- Alexey Pelykh <alexey.pelykh@corphub.eu>
|
|
84
84
|
|
|
85
|
-
-
|
|
86
|
-
-
|
|
85
|
+
- Pedro Gonzalez <pedro.gonzalez@pesol.es>
|
|
86
|
+
- Darius Žižys <darius@vialaurea.lt>
|
|
87
|
+
- APSL - Nagarro <https://apsl.tech>
|
|
88
|
+
|
|
89
|
+
- Bernat Obrador
|
|
87
90
|
|
|
88
91
|
Maintainers
|
|
89
92
|
-----------
|
|
@@ -98,6 +101,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
|
98
101
|
mission is to support the collaborative development of Odoo features and
|
|
99
102
|
promote its widespread use.
|
|
100
103
|
|
|
101
|
-
This module is part of the `OCA/account-analytic <https://github.com/OCA/account-analytic/tree/
|
|
104
|
+
This module is part of the `OCA/account-analytic <https://github.com/OCA/account-analytic/tree/18.0/account_analytic_parent>`_ project on GitHub.
|
|
102
105
|
|
|
103
106
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"name": "Account Analytic Parent",
|
|
13
13
|
"summary": """
|
|
14
14
|
This module reintroduces the hierarchy to the analytic accounts.""",
|
|
15
|
-
"version": "
|
|
15
|
+
"version": "18.0.1.0.0",
|
|
16
16
|
"category": "Accounting & Finance",
|
|
17
17
|
"license": "AGPL-3",
|
|
18
18
|
"author": "Matmoz d.o.o., "
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
#
|
|
5
5
|
msgid ""
|
|
6
6
|
msgstr ""
|
|
7
|
-
"Project-Id-Version: Odoo Server
|
|
7
|
+
"Project-Id-Version: Odoo Server 18.0\n"
|
|
8
8
|
"Report-Msgid-Bugs-To: \n"
|
|
9
9
|
"Last-Translator: \n"
|
|
10
10
|
"Language-Team: \n"
|
|
@@ -16,14 +16,12 @@ msgstr ""
|
|
|
16
16
|
#. module: account_analytic_parent
|
|
17
17
|
#. odoo-python
|
|
18
18
|
#: code:addons/account_analytic_parent/models/account_analytic_account.py:0
|
|
19
|
-
#, python-format
|
|
20
19
|
msgid "%(name)s - %(partner)s"
|
|
21
20
|
msgstr ""
|
|
22
21
|
|
|
23
22
|
#. module: account_analytic_parent
|
|
24
23
|
#. odoo-python
|
|
25
24
|
#: code:addons/account_analytic_parent/models/account_analytic_account.py:0
|
|
26
|
-
#, python-format
|
|
27
25
|
msgid "%(parent)s / %(own)s"
|
|
28
26
|
msgstr ""
|
|
29
27
|
|
|
@@ -122,7 +120,6 @@ msgstr ""
|
|
|
122
120
|
#. module: account_analytic_parent
|
|
123
121
|
#. odoo-python
|
|
124
122
|
#: code:addons/account_analytic_parent/models/account_analytic_account.py:0
|
|
125
|
-
#, python-format
|
|
126
123
|
msgid "Please activate first parent account %s"
|
|
127
124
|
msgstr ""
|
|
128
125
|
|
|
@@ -177,6 +174,5 @@ msgstr ""
|
|
|
177
174
|
#. module: account_analytic_parent
|
|
178
175
|
#. odoo-python
|
|
179
176
|
#: code:addons/account_analytic_parent/models/account_analytic_account.py:0
|
|
180
|
-
#, python-format
|
|
181
177
|
msgid "You can not create recursive analytic accounts."
|
|
182
178
|
msgstr ""
|
|
@@ -17,7 +17,7 @@ class AccountAnalyticAccount(models.Model):
|
|
|
17
17
|
_parent_store = True
|
|
18
18
|
_order = "complete_name"
|
|
19
19
|
|
|
20
|
-
parent_path = fields.Char(index=True
|
|
20
|
+
parent_path = fields.Char(index=True)
|
|
21
21
|
parent_id = fields.Many2one(
|
|
22
22
|
string="Parent Analytic Account",
|
|
23
23
|
comodel_name="account.analytic.account",
|
|
@@ -93,9 +93,8 @@ class AccountAnalyticAccount(models.Model):
|
|
|
93
93
|
|
|
94
94
|
@api.constrains("parent_id")
|
|
95
95
|
def check_recursion(self):
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
raise UserError(_("You can not create recursive analytic accounts."))
|
|
96
|
+
if self._has_cycle():
|
|
97
|
+
raise UserError(_("You can not create recursive analytic accounts."))
|
|
99
98
|
return True
|
|
100
99
|
|
|
101
100
|
@api.onchange("parent_id")
|
|
@@ -8,10 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
10
|
:Author: David Goodger (goodger@python.org)
|
|
11
|
-
:Id: $Id: html4css1.css
|
|
11
|
+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
|
|
12
12
|
:Copyright: This stylesheet has been placed in the public domain.
|
|
13
13
|
|
|
14
14
|
Default cascading style sheet for the HTML output of Docutils.
|
|
15
|
+
Despite the name, some widely supported CSS2 features are used.
|
|
15
16
|
|
|
16
17
|
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
|
|
17
18
|
customize this style sheet.
|
|
@@ -274,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
|
|
274
275
|
margin-left: 2em ;
|
|
275
276
|
margin-right: 2em }
|
|
276
277
|
|
|
277
|
-
pre.code .ln { color:
|
|
278
|
+
pre.code .ln { color: gray; } /* line numbers */
|
|
278
279
|
pre.code, code { background-color: #eeeeee }
|
|
279
280
|
pre.code .comment, code .comment { color: #5C6576 }
|
|
280
281
|
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
|
|
@@ -300,7 +301,7 @@ span.option {
|
|
|
300
301
|
span.pre {
|
|
301
302
|
white-space: pre }
|
|
302
303
|
|
|
303
|
-
span.problematic {
|
|
304
|
+
span.problematic, pre.problematic {
|
|
304
305
|
color: red }
|
|
305
306
|
|
|
306
307
|
span.section-subtitle {
|
|
@@ -366,9 +367,9 @@ ul.auto-toc {
|
|
|
366
367
|
!! This file is generated by oca-gen-addon-readme !!
|
|
367
368
|
!! changes will be overwritten. !!
|
|
368
369
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
369
|
-
!! source digest: sha256:
|
|
370
|
+
!! source digest: sha256:130fc29d40388ceca1e2d2826e72d95dc9dbba3f8a7e757d2dd954f00f2cd6f9
|
|
370
371
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
371
|
-
<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-analytic/tree/
|
|
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-analytic/tree/18.0/account_analytic_parent"><img alt="OCA/account-analytic" src="https://img.shields.io/badge/github-OCA%2Faccount--analytic-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-analytic-18-0/account-analytic-18-0-account_analytic_parent"><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-analytic&target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
372
373
|
<p>This module reintroduces the hierarchy to the analytic accounts as it
|
|
373
374
|
was in previous versions of Odoo. This module is a base module for other
|
|
374
375
|
modules to manage the hierarchy concept in analytics.</p>
|
|
@@ -395,7 +396,7 @@ Settings</p>
|
|
|
395
396
|
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-analytic/issues">GitHub Issues</a>.
|
|
396
397
|
In case of trouble, please check there if your issue has already been reported.
|
|
397
398
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
398
|
-
<a class="reference external" href="https://github.com/OCA/account-analytic/issues/new?body=module:%20account_analytic_parent%0Aversion:%
|
|
399
|
+
<a class="reference external" href="https://github.com/OCA/account-analytic/issues/new?body=module:%20account_analytic_parent%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
|
399
400
|
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
|
400
401
|
</div>
|
|
401
402
|
<div class="section" id="credits">
|
|
@@ -429,16 +430,22 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|
|
429
430
|
</li>
|
|
430
431
|
<li>Pedro Gonzalez <<a class="reference external" href="mailto:pedro.gonzalez@pesol.es">pedro.gonzalez@pesol.es</a>></li>
|
|
431
432
|
<li>Darius Žižys <<a class="reference external" href="mailto:darius@vialaurea.lt">darius@vialaurea.lt</a>></li>
|
|
433
|
+
<li>APSL - Nagarro <<a class="reference external" href="https://apsl.tech">https://apsl.tech</a>><ul>
|
|
434
|
+
<li>Bernat Obrador</li>
|
|
435
|
+
</ul>
|
|
436
|
+
</li>
|
|
432
437
|
</ul>
|
|
433
438
|
</div>
|
|
434
439
|
<div class="section" id="maintainers">
|
|
435
440
|
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
|
|
436
441
|
<p>This module is maintained by the OCA.</p>
|
|
437
|
-
<a class="reference external image-reference" href="https://odoo-community.org"
|
|
442
|
+
<a class="reference external image-reference" href="https://odoo-community.org">
|
|
443
|
+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
|
|
444
|
+
</a>
|
|
438
445
|
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
439
446
|
mission is to support the collaborative development of Odoo features and
|
|
440
447
|
promote its widespread use.</p>
|
|
441
|
-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-analytic/tree/
|
|
448
|
+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-analytic/tree/18.0/account_analytic_parent">OCA/account-analytic</a> project on GitHub.</p>
|
|
442
449
|
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
|
443
450
|
</div>
|
|
444
451
|
</div>
|
|
@@ -11,68 +11,67 @@ from odoo.tests.common import TransactionCase
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class TestAccountAnalyticRecursion(TransactionCase):
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
@classmethod
|
|
15
|
+
def setUpClass(cls):
|
|
16
|
+
super().setUpClass()
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
cls.analytic_account_obj = cls.env["account.analytic.account"]
|
|
19
|
+
cls.analytic_line_obj = cls.env["account.analytic.line"]
|
|
20
|
+
cls.partner1 = cls.env.ref("base.res_partner_1")
|
|
21
|
+
cls.partner2 = cls.env.ref("base.res_partner_2")
|
|
22
|
+
cls.plan = cls.env.ref("analytic.analytic_plan_departments")
|
|
23
|
+
cls.analytic_parent1 = cls.create_analytic_account(
|
|
23
24
|
{
|
|
24
25
|
"name": "parent aa",
|
|
25
26
|
"code": "01",
|
|
26
|
-
"partner_id":
|
|
27
|
-
"plan_id":
|
|
27
|
+
"partner_id": cls.partner1.id,
|
|
28
|
+
"plan_id": cls.plan.id,
|
|
28
29
|
}
|
|
29
30
|
)
|
|
30
|
-
|
|
31
|
+
cls.analytic_son = cls.create_analytic_account(
|
|
31
32
|
{
|
|
32
33
|
"name": "son aa",
|
|
33
34
|
"code": "02",
|
|
34
|
-
"parent_id":
|
|
35
|
-
"plan_id":
|
|
35
|
+
"parent_id": cls.analytic_parent1.id,
|
|
36
|
+
"plan_id": cls.plan.id,
|
|
36
37
|
}
|
|
37
38
|
)
|
|
38
|
-
|
|
39
|
+
cls.analytic_parent2 = cls.create_analytic_account(
|
|
39
40
|
{
|
|
40
41
|
"name": "parent2 aa",
|
|
41
42
|
"code": "01",
|
|
42
|
-
"partner_id":
|
|
43
|
-
"plan_id":
|
|
43
|
+
"partner_id": cls.partner2.id,
|
|
44
|
+
"plan_id": cls.plan.id,
|
|
44
45
|
}
|
|
45
46
|
)
|
|
46
|
-
|
|
47
|
+
cls.analytic_parent3 = cls.create_analytic_account(
|
|
47
48
|
{
|
|
48
49
|
"name": "parent3 aa",
|
|
49
50
|
"code": "01",
|
|
50
|
-
"partner_id":
|
|
51
|
-
"plan_id":
|
|
51
|
+
"partner_id": cls.partner2.id,
|
|
52
|
+
"plan_id": cls.plan.id,
|
|
52
53
|
}
|
|
53
54
|
)
|
|
54
|
-
|
|
55
|
+
cls.analytic_son2 = cls.create_analytic_account(
|
|
55
56
|
{
|
|
56
57
|
"name": "son aa",
|
|
57
58
|
"code": "02",
|
|
58
|
-
"parent_id":
|
|
59
|
-
"plan_id":
|
|
59
|
+
"parent_id": cls.analytic_parent3.id,
|
|
60
|
+
"plan_id": cls.plan.id,
|
|
60
61
|
}
|
|
61
62
|
)
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
self.assertEqual(
|
|
67
|
-
self.analytic_parent1.debit, 0, "Analytic account in the debit side"
|
|
68
|
-
)
|
|
69
|
-
self.assertEqual(self.analytic_parent3.debit, 50)
|
|
63
|
+
cls.create_analytic_line("Analytic line son", cls.analytic_son, 50)
|
|
64
|
+
cls.create_analytic_line("Analytic line parent1", cls.analytic_parent1, 100)
|
|
65
|
+
cls.create_analytic_line("Analytic line parent2", cls.analytic_parent2, 50)
|
|
66
|
+
cls.create_analytic_line("Analytic line son2", cls.analytic_son2, -50)
|
|
70
67
|
|
|
68
|
+
@classmethod
|
|
71
69
|
def create_analytic_account(self, values):
|
|
72
70
|
if hasattr(self.analytic_account_obj, "_default_code"):
|
|
73
71
|
values.pop("code")
|
|
74
72
|
return self.analytic_account_obj.create(values)
|
|
75
73
|
|
|
74
|
+
@classmethod
|
|
76
75
|
def create_analytic_line(self, name, analytic, amount):
|
|
77
76
|
return self.analytic_line_obj.create(
|
|
78
77
|
{
|
|
@@ -83,6 +82,12 @@ class TestAccountAnalyticRecursion(TransactionCase):
|
|
|
83
82
|
}
|
|
84
83
|
)
|
|
85
84
|
|
|
85
|
+
def test_analytic_account_debit(self):
|
|
86
|
+
self.assertEqual(
|
|
87
|
+
self.analytic_parent1.debit, 0, "Analytic account in the debit side"
|
|
88
|
+
)
|
|
89
|
+
self.assertEqual(self.analytic_parent3.debit, 50)
|
|
90
|
+
|
|
86
91
|
def test_recursion(self):
|
|
87
92
|
with self.assertRaises(UserError):
|
|
88
93
|
self.analytic_parent1.write({"parent_id": self.analytic_son.id})
|
|
@@ -127,6 +132,6 @@ class TestAccountAnalyticRecursion(TransactionCase):
|
|
|
127
132
|
self.analytic_son.toggle_active()
|
|
128
133
|
|
|
129
134
|
def test_name(self):
|
|
130
|
-
display_name = "[
|
|
135
|
+
display_name = f"[{self.analytic_son.code}] parent aa / son aa"
|
|
131
136
|
self.assertEqual(self.analytic_son.complete_name, "parent aa / son aa")
|
|
132
137
|
self.assertEqual(self.analytic_son.display_name, display_name)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-account_analytic_parent
|
|
3
|
-
Version:
|
|
3
|
+
Version: 18.0.1.0.0.2
|
|
4
4
|
Requires-Python: >=3.10
|
|
5
|
-
Requires-Dist: odoo
|
|
5
|
+
Requires-Dist: odoo==18.0.*
|
|
6
6
|
Summary: This module reintroduces the hierarchy to the analytic accounts.
|
|
7
7
|
Home-page: https://github.com/OCA/account-analytic
|
|
8
8
|
License: AGPL-3
|
|
@@ -10,7 +10,7 @@ Author: Matmoz d.o.o., Luxim d.o.o., Deneroteam, ForgeFlow, Tecnativa, Corporate
|
|
|
10
10
|
Author-email: support@odoo-community.org
|
|
11
11
|
Classifier: Programming Language :: Python
|
|
12
12
|
Classifier: Framework :: Odoo
|
|
13
|
-
Classifier: Framework :: Odoo ::
|
|
13
|
+
Classifier: Framework :: Odoo :: 18.0
|
|
14
14
|
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
|
|
15
15
|
|
|
16
16
|
=======================
|
|
@@ -22,7 +22,7 @@ Account Analytic Parent
|
|
|
22
22
|
!! This file is generated by oca-gen-addon-readme !!
|
|
23
23
|
!! changes will be overwritten. !!
|
|
24
24
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
25
|
-
!! source digest: sha256:
|
|
25
|
+
!! source digest: sha256:130fc29d40388ceca1e2d2826e72d95dc9dbba3f8a7e757d2dd954f00f2cd6f9
|
|
26
26
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
27
27
|
|
|
28
28
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -32,13 +32,13 @@ Account Analytic Parent
|
|
|
32
32
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
|
33
33
|
:alt: License: AGPL-3
|
|
34
34
|
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--analytic-lightgray.png?logo=github
|
|
35
|
-
:target: https://github.com/OCA/account-analytic/tree/
|
|
35
|
+
:target: https://github.com/OCA/account-analytic/tree/18.0/account_analytic_parent
|
|
36
36
|
:alt: OCA/account-analytic
|
|
37
37
|
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
|
38
|
-
:target: https://translation.odoo-community.org/projects/account-analytic-
|
|
38
|
+
:target: https://translation.odoo-community.org/projects/account-analytic-18-0/account-analytic-18-0-account_analytic_parent
|
|
39
39
|
:alt: Translate me on Weblate
|
|
40
40
|
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
|
41
|
-
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-analytic&target_branch=
|
|
41
|
+
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-analytic&target_branch=18.0
|
|
42
42
|
:alt: Try me on Runboat
|
|
43
43
|
|
|
44
44
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|
@@ -64,7 +64,7 @@ Bug Tracker
|
|
|
64
64
|
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-analytic/issues>`_.
|
|
65
65
|
In case of trouble, please check there if your issue has already been reported.
|
|
66
66
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
67
|
-
`feedback <https://github.com/OCA/account-analytic/issues/new?body=module:%20account_analytic_parent%0Aversion:%
|
|
67
|
+
`feedback <https://github.com/OCA/account-analytic/issues/new?body=module:%20account_analytic_parent%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
|
68
68
|
|
|
69
69
|
Do not contact contributors directly about support or help with technical issues.
|
|
70
70
|
|
|
@@ -84,21 +84,24 @@ Authors
|
|
|
84
84
|
Contributors
|
|
85
85
|
------------
|
|
86
86
|
|
|
87
|
-
-
|
|
88
|
-
-
|
|
89
|
-
-
|
|
90
|
-
-
|
|
91
|
-
-
|
|
92
|
-
-
|
|
93
|
-
-
|
|
94
|
-
-
|
|
95
|
-
-
|
|
96
|
-
-
|
|
87
|
+
- ForgeFlow <http://www.forgeflow.com>
|
|
88
|
+
- Luxim d.o.o. <http://www.luxim.si>
|
|
89
|
+
- Matmoz d.o.o. <http://www.matmoz.si>
|
|
90
|
+
- Deneroteam. <dhaval@deneroteam.com>
|
|
91
|
+
- SerpentCS <http://www.serpentcs.com/>
|
|
92
|
+
- Pedro M. Baeza <pedro.baeza@tecnativa.com>
|
|
93
|
+
- Vicent Cubells <vicent.cubells@tecnativa.com>
|
|
94
|
+
- David Vidal <david.vidal@tecnativa.com>
|
|
95
|
+
- Jaume Planas <jaume.planas@minorisa.net>
|
|
96
|
+
- `CorporateHub <https://corporatehub.eu/>`__
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
- Alexey Pelykh <alexey.pelykh@corphub.eu>
|
|
99
99
|
|
|
100
|
-
-
|
|
101
|
-
-
|
|
100
|
+
- Pedro Gonzalez <pedro.gonzalez@pesol.es>
|
|
101
|
+
- Darius Žižys <darius@vialaurea.lt>
|
|
102
|
+
- APSL - Nagarro <https://apsl.tech>
|
|
103
|
+
|
|
104
|
+
- Bernat Obrador
|
|
102
105
|
|
|
103
106
|
Maintainers
|
|
104
107
|
-----------
|
|
@@ -113,6 +116,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
|
113
116
|
mission is to support the collaborative development of Odoo features and
|
|
114
117
|
promote its widespread use.
|
|
115
118
|
|
|
116
|
-
This module is part of the `OCA/account-analytic <https://github.com/OCA/account-analytic/tree/
|
|
119
|
+
This module is part of the `OCA/account-analytic <https://github.com/OCA/account-analytic/tree/18.0/account_analytic_parent>`_ project on GitHub.
|
|
117
120
|
|
|
118
121
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
odoo/addons/account_analytic_parent/README.rst,sha256=
|
|
1
|
+
odoo/addons/account_analytic_parent/README.rst,sha256=Zgo_vJmduqACSCh26h-Ztu4DdLGo04Yhp8utYfRIzUI,3767
|
|
2
2
|
odoo/addons/account_analytic_parent/__init__.py,sha256=6CGLNMVZ--55FOPBhnKu8w7kW6vI0d0VoZ2uqINXyNU,126
|
|
3
|
-
odoo/addons/account_analytic_parent/__manifest__.py,sha256=
|
|
3
|
+
odoo/addons/account_analytic_parent/__manifest__.py,sha256=7IJe7vcc7rLSC1oKyRlWVU800ZxjV_Ky7sMe3f_UVbg,1008
|
|
4
4
|
odoo/addons/account_analytic_parent/hooks.py,sha256=rJdMeNILgsJbBTLD4vZCadD-_wr1OyfQilwtdgaB9qI,189
|
|
5
5
|
odoo/addons/account_analytic_parent/demo/analytic_account_demo.xml,sha256=_Gd7AU9lEstN91QvTaTwny4UJ3iBBvuEzYypwZ3Lj9o,10397
|
|
6
6
|
odoo/addons/account_analytic_parent/i18n/ab.po,sha256=-CN5DiKSci0L18vqBckljD6NZ7G0zlu4h_lYAHVAOds,5843
|
|
7
|
-
odoo/addons/account_analytic_parent/i18n/account_analytic_parent.pot,sha256
|
|
7
|
+
odoo/addons/account_analytic_parent/i18n/account_analytic_parent.pot,sha256=-NyHnJhUbmED9BDNA9fI5ro0rqswY4h2RyqvHTnrA4I,5705
|
|
8
8
|
odoo/addons/account_analytic_parent/i18n/ca.po,sha256=srw1yl5qCAPzygbyoUHuIoxF7fpBXGqntj959pSMdzE,6617
|
|
9
9
|
odoo/addons/account_analytic_parent/i18n/cs_CZ.po,sha256=3XJI_M6cHZIJTc7d55md2Y-Du4rCA2MzNqjZBUPMoCY,7364
|
|
10
10
|
odoo/addons/account_analytic_parent/i18n/de.po,sha256=WsMTXG9uLxwgdeXwYAEPHU1IjrZmgvgGP13p8bReYMA,6189
|
|
@@ -30,16 +30,16 @@ odoo/addons/account_analytic_parent/i18n/sl.po,sha256=ZYtNSaC-ioApiZiIl9_39meOZw
|
|
|
30
30
|
odoo/addons/account_analytic_parent/i18n/th.po,sha256=HX0ZMX0yYjbJLtuFEXkFwDU-Q1va-_QfJm35FR2YqHs,5838
|
|
31
31
|
odoo/addons/account_analytic_parent/i18n/zh_CN.po,sha256=P2aDfC6gkLz5xsvJsmgAurJYuTkdk0exULbsLXUJXas,6521
|
|
32
32
|
odoo/addons/account_analytic_parent/models/__init__.py,sha256=7uxHf6TyJtDL6iwhla4Wygnct5harxNRDmwWZceq9og,110
|
|
33
|
-
odoo/addons/account_analytic_parent/models/account_analytic_account.py,sha256=
|
|
34
|
-
odoo/addons/account_analytic_parent/readme/CONTRIBUTORS.md,sha256=
|
|
33
|
+
odoo/addons/account_analytic_parent/models/account_analytic_account.py,sha256=8DTUyacOPX0uGnaBWJ5I-qh-losBSb11zG8xdcMqERo,5015
|
|
34
|
+
odoo/addons/account_analytic_parent/readme/CONTRIBUTORS.md,sha256=hcOjPRMs3Jf7fjtvAhgx0INTM55H6_C9zEbEc5Guxmk,649
|
|
35
35
|
odoo/addons/account_analytic_parent/readme/DESCRIPTION.md,sha256=fBiBB8oI1FkEDYBuo6s2W3zFrV6hTwIRoBB11c8Y8Qs,197
|
|
36
36
|
odoo/addons/account_analytic_parent/readme/USAGE.md,sha256=tEBpXigcjtsUqKG4aal8Sch9zEUlW4ya4OKEP01zS7c,76
|
|
37
37
|
odoo/addons/account_analytic_parent/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
|
38
|
-
odoo/addons/account_analytic_parent/static/description/index.html,sha256=
|
|
38
|
+
odoo/addons/account_analytic_parent/static/description/index.html,sha256=E7Zw7Q_SrYcuXx9wxAXkiSAulc4DgUaJGFburjw4ODw,14397
|
|
39
39
|
odoo/addons/account_analytic_parent/tests/__init__.py,sha256=wl6XwlTDhO-sJrowvXGQSnMyYLPnlcLGCu9SyMpUQpA,115
|
|
40
|
-
odoo/addons/account_analytic_parent/tests/test_account_analytic_account.py,sha256=
|
|
40
|
+
odoo/addons/account_analytic_parent/tests/test_account_analytic_account.py,sha256=RkCBdmVwAR7jjnG2GDI-NYzRUwNx-rGkVEx6shBdTE0,5286
|
|
41
41
|
odoo/addons/account_analytic_parent/views/account_analytic_account_view.xml,sha256=mBswktvXEtcNoPhS1R-oy_CAIWDf393LJrmiVnmXe6g,1316
|
|
42
|
-
odoo_addon_account_analytic_parent-
|
|
43
|
-
odoo_addon_account_analytic_parent-
|
|
44
|
-
odoo_addon_account_analytic_parent-
|
|
45
|
-
odoo_addon_account_analytic_parent-
|
|
42
|
+
odoo_addon_account_analytic_parent-18.0.1.0.0.2.dist-info/METADATA,sha256=YV3P-p66bE5Z4XTJEzOqsC7Ie3OCY8tCUqd_PX5GaNw,4392
|
|
43
|
+
odoo_addon_account_analytic_parent-18.0.1.0.0.2.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
|
44
|
+
odoo_addon_account_analytic_parent-18.0.1.0.0.2.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
|
45
|
+
odoo_addon_account_analytic_parent-18.0.1.0.0.2.dist-info/RECORD,,
|