odoo-addon-analytic-hr-department-restriction 18.0.1.0.0.4__py3-none-any.whl → 18.0.1.1.0.4__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/analytic_hr_department_restriction/README.rst +6 -2
- odoo/addons/analytic_hr_department_restriction/__manifest__.py +1 -1
- odoo/addons/analytic_hr_department_restriction/i18n/analytic_hr_department_restriction.pot +3 -3
- odoo/addons/analytic_hr_department_restriction/i18n/es.po +16 -8
- odoo/addons/analytic_hr_department_restriction/i18n/it.po +7 -4
- odoo/addons/analytic_hr_department_restriction/migrations/18.0.1.1.0/post-migration.py +25 -0
- odoo/addons/analytic_hr_department_restriction/models/account_analytic_account.py +2 -2
- odoo/addons/analytic_hr_department_restriction/models/account_analytic_plan.py +2 -3
- odoo/addons/analytic_hr_department_restriction/models/ir_rule.py +2 -2
- odoo/addons/analytic_hr_department_restriction/static/description/index.html +18 -12
- odoo/addons/analytic_hr_department_restriction/tests/test_analytic_hr_department_restriction.py +7 -11
- odoo/addons/analytic_hr_department_restriction/views/account_analytic_account_views.xml +10 -6
- odoo/addons/analytic_hr_department_restriction/views/account_analytic_plan_views.xml +7 -2
- {odoo_addon_analytic_hr_department_restriction-18.0.1.0.0.4.dist-info → odoo_addon_analytic_hr_department_restriction-18.0.1.1.0.4.dist-info}/METADATA +7 -3
- {odoo_addon_analytic_hr_department_restriction-18.0.1.0.0.4.dist-info → odoo_addon_analytic_hr_department_restriction-18.0.1.1.0.4.dist-info}/RECORD +17 -16
- {odoo_addon_analytic_hr_department_restriction-18.0.1.0.0.4.dist-info → odoo_addon_analytic_hr_department_restriction-18.0.1.1.0.4.dist-info}/WHEEL +0 -0
- {odoo_addon_analytic_hr_department_restriction-18.0.1.0.0.4.dist-info → odoo_addon_analytic_hr_department_restriction-18.0.1.1.0.4.dist-info}/top_level.txt +0 -0
@@ -1,3 +1,7 @@
|
|
1
|
+
.. image:: https://odoo-community.org/readme-banner-image
|
2
|
+
:target: https://odoo-community.org/get-involved?utm_source=readme
|
3
|
+
:alt: Odoo Community Association
|
4
|
+
|
1
5
|
====================================================
|
2
6
|
Analytic distributions restriction per HR department
|
3
7
|
====================================================
|
@@ -7,13 +11,13 @@ Analytic distributions restriction per HR department
|
|
7
11
|
!! This file is generated by oca-gen-addon-readme !!
|
8
12
|
!! changes will be overwritten. !!
|
9
13
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
10
|
-
!! source digest: sha256:
|
14
|
+
!! source digest: sha256:ee0fd2e012613074b94e23cc2e42f617980d3d4dff2450b03be3bb2bcd8872a1
|
11
15
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
12
16
|
|
13
17
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
14
18
|
:target: https://odoo-community.org/page/development-status
|
15
19
|
:alt: Beta
|
16
|
-
.. |badge2| image:: https://img.shields.io/badge/
|
20
|
+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
|
17
21
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
18
22
|
:alt: License: AGPL-3
|
19
23
|
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--analytic-lightgray.png?logo=github
|
@@ -4,7 +4,7 @@
|
|
4
4
|
"name": "Analytic distributions restriction per HR department",
|
5
5
|
"author": "Tecnativa, Odoo Community Association (OCA)",
|
6
6
|
"website": "https://github.com/OCA/account-analytic",
|
7
|
-
"version": "18.0.1.
|
7
|
+
"version": "18.0.1.1.0",
|
8
8
|
"depends": ["account", "hr"],
|
9
9
|
"license": "AGPL-3",
|
10
10
|
"category": "Account",
|
@@ -29,10 +29,10 @@ msgid "Analytic Plans"
|
|
29
29
|
msgstr ""
|
30
30
|
|
31
31
|
#. module: analytic_hr_department_restriction
|
32
|
-
#: model:ir.model.fields,field_description:analytic_hr_department_restriction.
|
33
|
-
#: model:ir.model.fields,field_description:analytic_hr_department_restriction.
|
32
|
+
#: model:ir.model.fields,field_description:analytic_hr_department_restriction.field_account_analytic_account__department_ids
|
33
|
+
#: model:ir.model.fields,field_description:analytic_hr_department_restriction.field_account_analytic_plan__department_ids
|
34
34
|
#: model_terms:ir.ui.view,arch_db:analytic_hr_department_restriction.view_account_analytic_account_search
|
35
|
-
msgid "
|
35
|
+
msgid "Departments"
|
36
36
|
msgstr ""
|
37
37
|
|
38
38
|
#. module: analytic_hr_department_restriction
|
@@ -7,15 +7,15 @@ msgstr ""
|
|
7
7
|
"Project-Id-Version: Odoo Server 16.0\n"
|
8
8
|
"Report-Msgid-Bugs-To: \n"
|
9
9
|
"POT-Creation-Date: 2025-04-16 14:25+0000\n"
|
10
|
-
"PO-Revision-Date: 2025-
|
11
|
-
"Last-Translator:
|
10
|
+
"PO-Revision-Date: 2025-06-13 16:26+0000\n"
|
11
|
+
"Last-Translator: Víctor Martínez <victor.martinez@tecnativa.com>\n"
|
12
12
|
"Language-Team: \n"
|
13
13
|
"Language: es\n"
|
14
14
|
"MIME-Version: 1.0\n"
|
15
15
|
"Content-Type: text/plain; charset=UTF-8\n"
|
16
16
|
"Content-Transfer-Encoding: 8bit\n"
|
17
|
-
"Plural-Forms:
|
18
|
-
"X-Generator:
|
17
|
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
18
|
+
"X-Generator: Weblate 5.10.4\n"
|
19
19
|
|
20
20
|
#. module: analytic_hr_department_restriction
|
21
21
|
#: model:ir.model,name:analytic_hr_department_restriction.model_account_analytic_account
|
@@ -33,8 +33,16 @@ msgid "Analytic Plans"
|
|
33
33
|
msgstr "Planes analíticos"
|
34
34
|
|
35
35
|
#. module: analytic_hr_department_restriction
|
36
|
-
#: model:ir.model.fields,field_description:analytic_hr_department_restriction.
|
37
|
-
#: model:ir.model.fields,field_description:analytic_hr_department_restriction.
|
36
|
+
#: model:ir.model.fields,field_description:analytic_hr_department_restriction.field_account_analytic_account__department_ids
|
37
|
+
#: model:ir.model.fields,field_description:analytic_hr_department_restriction.field_account_analytic_plan__department_ids
|
38
38
|
#: model_terms:ir.ui.view,arch_db:analytic_hr_department_restriction.view_account_analytic_account_search
|
39
|
-
msgid "
|
40
|
-
msgstr "
|
39
|
+
msgid "Departments"
|
40
|
+
msgstr "Departamentos"
|
41
|
+
|
42
|
+
#. module: analytic_hr_department_restriction
|
43
|
+
#: model:ir.model,name:analytic_hr_department_restriction.model_ir_rule
|
44
|
+
msgid "Record Rule"
|
45
|
+
msgstr ""
|
46
|
+
|
47
|
+
#~ msgid "Department"
|
48
|
+
#~ msgstr "Departamento"
|
@@ -32,13 +32,16 @@ msgid "Analytic Plans"
|
|
32
32
|
msgstr "Piani analitici"
|
33
33
|
|
34
34
|
#. module: analytic_hr_department_restriction
|
35
|
-
#: model:ir.model.fields,field_description:analytic_hr_department_restriction.
|
36
|
-
#: model:ir.model.fields,field_description:analytic_hr_department_restriction.
|
35
|
+
#: model:ir.model.fields,field_description:analytic_hr_department_restriction.field_account_analytic_account__department_ids
|
36
|
+
#: model:ir.model.fields,field_description:analytic_hr_department_restriction.field_account_analytic_plan__department_ids
|
37
37
|
#: model_terms:ir.ui.view,arch_db:analytic_hr_department_restriction.view_account_analytic_account_search
|
38
|
-
msgid "
|
39
|
-
msgstr "
|
38
|
+
msgid "Departments"
|
39
|
+
msgstr ""
|
40
40
|
|
41
41
|
#. module: analytic_hr_department_restriction
|
42
42
|
#: model:ir.model,name:analytic_hr_department_restriction.model_ir_rule
|
43
43
|
msgid "Record Rule"
|
44
44
|
msgstr "Regola su record"
|
45
|
+
|
46
|
+
#~ msgid "Department"
|
47
|
+
#~ msgstr "Reparto"
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Copyright 2025 Tecnativa - Víctor Martínez
|
2
|
+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
3
|
+
from openupgradelib import openupgrade
|
4
|
+
|
5
|
+
from odoo.tools.sql import column_exists
|
6
|
+
|
7
|
+
|
8
|
+
@openupgrade.migrate()
|
9
|
+
def migrate(env, version):
|
10
|
+
if column_exists(env.cr, "account_analytic_account", "department_id"):
|
11
|
+
openupgrade.m2o_to_x2m(
|
12
|
+
env.cr,
|
13
|
+
env["account.analytic.account"],
|
14
|
+
"account_analytic_account",
|
15
|
+
"department_ids",
|
16
|
+
"department_id",
|
17
|
+
)
|
18
|
+
if column_exists(env.cr, "account_analytic_plan", "department_id"):
|
19
|
+
openupgrade.m2o_to_x2m(
|
20
|
+
env.cr,
|
21
|
+
env["account.analytic.plan"],
|
22
|
+
"account_analytic_plan",
|
23
|
+
"department_ids",
|
24
|
+
"department_id",
|
25
|
+
)
|
@@ -7,8 +7,8 @@ from odoo import fields, models
|
|
7
7
|
class AccountAnalyticAccount(models.Model):
|
8
8
|
_inherit = "account.analytic.account"
|
9
9
|
|
10
|
-
|
10
|
+
department_ids = fields.Many2many(
|
11
11
|
comodel_name="hr.department",
|
12
|
-
string="
|
12
|
+
string="Departments",
|
13
13
|
domain="['|',('company_id', '=?', company_id),('company_id', '=', False)]",
|
14
14
|
)
|
@@ -8,10 +8,9 @@ from odoo.tools import config
|
|
8
8
|
class AccountAnalyticPlan(models.Model):
|
9
9
|
_inherit = "account.analytic.plan"
|
10
10
|
|
11
|
-
|
11
|
+
department_ids = fields.Many2many(
|
12
12
|
comodel_name="hr.department",
|
13
|
-
string="
|
14
|
-
company_dependent=True,
|
13
|
+
string="Departments",
|
15
14
|
)
|
16
15
|
|
17
16
|
def _get_all_plans(self):
|
@@ -56,11 +56,11 @@ class IrRule(models.Model):
|
|
56
56
|
user = user.with_context(allowed_company_ids=user.company_ids.ids)
|
57
57
|
if user.has_group(group2):
|
58
58
|
extra_domain = [
|
59
|
-
("
|
59
|
+
("department_ids", "child_of", user.employee_ids.department_id.ids)
|
60
60
|
]
|
61
61
|
if user.has_group(group3):
|
62
62
|
extra_domain = expression.OR(
|
63
|
-
[extra_domain, [("
|
63
|
+
[extra_domain, [("department_ids", "=", False)]]
|
64
64
|
)
|
65
65
|
else:
|
66
66
|
extra_domain = [("id", "=", 0)]
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
5
5
|
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
|
6
|
-
<title>
|
6
|
+
<title>README.rst</title>
|
7
7
|
<style type="text/css">
|
8
8
|
|
9
9
|
/*
|
@@ -360,16 +360,21 @@ ul.auto-toc {
|
|
360
360
|
</style>
|
361
361
|
</head>
|
362
362
|
<body>
|
363
|
-
<div class="document"
|
364
|
-
<h1 class="title">Analytic distributions restriction per HR department</h1>
|
363
|
+
<div class="document">
|
365
364
|
|
365
|
+
|
366
|
+
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
|
367
|
+
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
|
368
|
+
</a>
|
369
|
+
<div class="section" id="analytic-distributions-restriction-per-hr-department">
|
370
|
+
<h1>Analytic distributions restriction per HR department</h1>
|
366
371
|
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
367
372
|
!! This file is generated by oca-gen-addon-readme !!
|
368
373
|
!! changes will be overwritten. !!
|
369
374
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
370
|
-
!! source digest: sha256:
|
375
|
+
!! source digest: sha256:ee0fd2e012613074b94e23cc2e42f617980d3d4dff2450b03be3bb2bcd8872a1
|
371
376
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
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/
|
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-analytic/tree/18.0/analytic_hr_department_restriction"><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-analytic_hr_department_restriction"><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>
|
373
378
|
<p>This module allows you to limit plans and analytical accounts by
|
374
379
|
employee departments.</p>
|
375
380
|
<p>Users will only be able to view plans and analytical accounts linked to
|
@@ -391,14 +396,14 @@ all plans and analytical accounts without restrictions.</p>
|
|
391
396
|
</ul>
|
392
397
|
</div>
|
393
398
|
<div class="section" id="configuration">
|
394
|
-
<
|
399
|
+
<h2><a class="toc-backref" href="#toc-entry-1">Configuration</a></h2>
|
395
400
|
<ul class="simple">
|
396
401
|
<li>Your user must have the “Analytic Accounting” permission.</li>
|
397
402
|
<li>Create an employee linked to your user with a defined department.</li>
|
398
403
|
</ul>
|
399
404
|
</div>
|
400
405
|
<div class="section" id="usage">
|
401
|
-
<
|
406
|
+
<h2><a class="toc-backref" href="#toc-entry-2">Usage</a></h2>
|
402
407
|
<ol class="arabic simple">
|
403
408
|
<li>Go to an analytical plan/account and define your employee’s
|
404
409
|
department.</li>
|
@@ -414,7 +419,7 @@ will users with the permission “Invoicing / Invoicing”.</li>
|
|
414
419
|
</ol>
|
415
420
|
</div>
|
416
421
|
<div class="section" id="bug-tracker">
|
417
|
-
<
|
422
|
+
<h2><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h2>
|
418
423
|
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-analytic/issues">GitHub Issues</a>.
|
419
424
|
In case of trouble, please check there if your issue has already been reported.
|
420
425
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
@@ -422,15 +427,15 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|
422
427
|
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
423
428
|
</div>
|
424
429
|
<div class="section" id="credits">
|
425
|
-
<
|
430
|
+
<h2><a class="toc-backref" href="#toc-entry-4">Credits</a></h2>
|
426
431
|
<div class="section" id="authors">
|
427
|
-
<
|
432
|
+
<h3><a class="toc-backref" href="#toc-entry-5">Authors</a></h3>
|
428
433
|
<ul class="simple">
|
429
434
|
<li>Tecnativa</li>
|
430
435
|
</ul>
|
431
436
|
</div>
|
432
437
|
<div class="section" id="contributors">
|
433
|
-
<
|
438
|
+
<h3><a class="toc-backref" href="#toc-entry-6">Contributors</a></h3>
|
434
439
|
<ul class="simple">
|
435
440
|
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
|
436
441
|
<li>Víctor Martínez</li>
|
@@ -440,7 +445,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|
440
445
|
</ul>
|
441
446
|
</div>
|
442
447
|
<div class="section" id="maintainers">
|
443
|
-
<
|
448
|
+
<h3><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h3>
|
444
449
|
<p>This module is maintained by the OCA.</p>
|
445
450
|
<a class="reference external image-reference" href="https://odoo-community.org">
|
446
451
|
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
|
@@ -455,5 +460,6 @@ promote its widespread use.</p>
|
|
455
460
|
</div>
|
456
461
|
</div>
|
457
462
|
</div>
|
463
|
+
</div>
|
458
464
|
</body>
|
459
465
|
</html>
|
odoo/addons/analytic_hr_department_restriction/tests/test_analytic_hr_department_restriction.py
CHANGED
@@ -76,28 +76,28 @@ class TestAnalyticHrDepartmentRestriction(BaseCommon):
|
|
76
76
|
cls.plan_a = cls.env["account.analytic.plan"].create(
|
77
77
|
{
|
78
78
|
"name": "Test plan A",
|
79
|
-
"
|
79
|
+
"department_ids": [Command.set(cls.department_a.ids)],
|
80
80
|
}
|
81
81
|
)
|
82
82
|
cls.account_a = cls.env["account.analytic.account"].create(
|
83
83
|
{
|
84
84
|
"name": "Test account A",
|
85
85
|
"plan_id": cls.plan_a.id,
|
86
|
-
"
|
86
|
+
"department_ids": [Command.set(cls.department_a.ids)],
|
87
87
|
"company_id": cls.env.company.id,
|
88
88
|
}
|
89
89
|
)
|
90
90
|
cls.plan_b = cls.env["account.analytic.plan"].create(
|
91
91
|
{
|
92
92
|
"name": "Test plan B",
|
93
|
-
"
|
93
|
+
"department_ids": [Command.set(cls.department_b.ids)],
|
94
94
|
}
|
95
95
|
)
|
96
96
|
cls.account_b = cls.env["account.analytic.account"].create(
|
97
97
|
{
|
98
98
|
"name": "Test account B",
|
99
99
|
"plan_id": cls.plan_b.id,
|
100
|
-
"
|
100
|
+
"department_ids": [Command.set(cls.department_b.ids)],
|
101
101
|
"company_id": cls.env.company.id,
|
102
102
|
}
|
103
103
|
)
|
@@ -143,12 +143,8 @@ class TestAnalyticHrDepartmentRestriction(BaseCommon):
|
|
143
143
|
# the corresponding plan/analytic account even if the employee's company
|
144
144
|
# is not selected.
|
145
145
|
self.department_a.company_id = False
|
146
|
-
self.plan_a.
|
147
|
-
|
148
|
-
).department_id = self.department_a
|
149
|
-
self.plan_b.with_company(
|
150
|
-
self.company_extra.id
|
151
|
-
).department_id = self.department_b
|
146
|
+
self.plan_a.department_ids = [Command.set(self.department_a.ids)]
|
147
|
+
self.plan_b.department_ids = [Command.set(self.department_b.ids)]
|
152
148
|
plans = (
|
153
149
|
self.env["account.analytic.plan"]
|
154
150
|
.with_company(self.company_extra.id)
|
@@ -171,7 +167,7 @@ class TestAnalyticHrDepartmentRestriction(BaseCommon):
|
|
171
167
|
|
172
168
|
@users("test-user")
|
173
169
|
def test_get_relevant_plans(self):
|
174
|
-
self.plan_a.
|
170
|
+
self.plan_a.department_ids = False
|
175
171
|
items = self.env["account.analytic.plan"].get_relevant_plans(
|
176
172
|
business_domain="general"
|
177
173
|
)
|
@@ -5,7 +5,11 @@
|
|
5
5
|
<field name="inherit_id" ref="analytic.view_account_analytic_account_form" />
|
6
6
|
<field name="arch" type="xml">
|
7
7
|
<field name="plan_id" position="before">
|
8
|
-
<field
|
8
|
+
<field
|
9
|
+
name="department_ids"
|
10
|
+
widget="many2many_tags"
|
11
|
+
groups="account.group_account_invoice"
|
12
|
+
/>
|
9
13
|
</field>
|
10
14
|
</field>
|
11
15
|
</record>
|
@@ -15,7 +19,8 @@
|
|
15
19
|
<field name="arch" type="xml">
|
16
20
|
<field name="plan_id" position="after">
|
17
21
|
<field
|
18
|
-
name="
|
22
|
+
name="department_ids"
|
23
|
+
widget="many2many_tags"
|
19
24
|
groups="account.group_account_invoice"
|
20
25
|
optional="hide"
|
21
26
|
/>
|
@@ -27,14 +32,13 @@
|
|
27
32
|
<field name="inherit_id" ref="analytic.view_account_analytic_account_search" />
|
28
33
|
<field name="arch" type="xml">
|
29
34
|
<field name="partner_id" position="after">
|
30
|
-
<field name="
|
35
|
+
<field name="department_ids" groups="account.group_account_invoice" />
|
31
36
|
</field>
|
32
37
|
<filter name="associatedpartner" position="after">
|
33
38
|
<filter
|
34
|
-
string="
|
35
|
-
name="
|
39
|
+
string="Departments"
|
40
|
+
name="filter_department_ids"
|
36
41
|
domain="[]"
|
37
|
-
context="{'group_by': 'department_id'}"
|
38
42
|
groups="account.group_account_invoice"
|
39
43
|
/>
|
40
44
|
</filter>
|
@@ -5,7 +5,11 @@
|
|
5
5
|
<field name="inherit_id" ref="analytic.account_analytic_plan_form_view" />
|
6
6
|
<field name="arch" type="xml">
|
7
7
|
<field name="color" position="after">
|
8
|
-
<field
|
8
|
+
<field
|
9
|
+
name="department_ids"
|
10
|
+
widget="many2many_tags"
|
11
|
+
groups="account.group_account_invoice"
|
12
|
+
/>
|
9
13
|
</field>
|
10
14
|
</field>
|
11
15
|
</record>
|
@@ -15,7 +19,8 @@
|
|
15
19
|
<field name="arch" type="xml">
|
16
20
|
<field name="color" position="after">
|
17
21
|
<field
|
18
|
-
name="
|
22
|
+
name="department_ids"
|
23
|
+
widget="many2many_tags"
|
19
24
|
groups="account.group_account_invoice"
|
20
25
|
optional="hide"
|
21
26
|
/>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: odoo-addon-analytic_hr_department_restriction
|
3
|
-
Version: 18.0.1.
|
3
|
+
Version: 18.0.1.1.0.4
|
4
4
|
Requires-Python: >=3.10
|
5
5
|
Requires-Dist: odoo==18.0.*
|
6
6
|
Summary: Analytic distributions restriction per HR department
|
@@ -13,6 +13,10 @@ Classifier: Framework :: Odoo
|
|
13
13
|
Classifier: Framework :: Odoo :: 18.0
|
14
14
|
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
|
15
15
|
|
16
|
+
.. image:: https://odoo-community.org/readme-banner-image
|
17
|
+
:target: https://odoo-community.org/get-involved?utm_source=readme
|
18
|
+
:alt: Odoo Community Association
|
19
|
+
|
16
20
|
====================================================
|
17
21
|
Analytic distributions restriction per HR department
|
18
22
|
====================================================
|
@@ -22,13 +26,13 @@ Analytic distributions restriction per HR department
|
|
22
26
|
!! This file is generated by oca-gen-addon-readme !!
|
23
27
|
!! changes will be overwritten. !!
|
24
28
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
25
|
-
!! source digest: sha256:
|
29
|
+
!! source digest: sha256:ee0fd2e012613074b94e23cc2e42f617980d3d4dff2450b03be3bb2bcd8872a1
|
26
30
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
27
31
|
|
28
32
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
29
33
|
:target: https://odoo-community.org/page/development-status
|
30
34
|
:alt: Beta
|
31
|
-
.. |badge2| image:: https://img.shields.io/badge/
|
35
|
+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
|
32
36
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
33
37
|
:alt: License: AGPL-3
|
34
38
|
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--analytic-lightgray.png?logo=github
|
@@ -1,27 +1,28 @@
|
|
1
|
-
odoo/addons/analytic_hr_department_restriction/README.rst,sha256=
|
1
|
+
odoo/addons/analytic_hr_department_restriction/README.rst,sha256=3Ti0bVYynZbCj_iCIDSjn8t19S12bXxErQaxAS0_P-A,4571
|
2
2
|
odoo/addons/analytic_hr_department_restriction/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
|
3
|
-
odoo/addons/analytic_hr_department_restriction/__manifest__.py,sha256=
|
4
|
-
odoo/addons/analytic_hr_department_restriction/i18n/analytic_hr_department_restriction.pot,sha256=
|
5
|
-
odoo/addons/analytic_hr_department_restriction/i18n/es.po,sha256
|
6
|
-
odoo/addons/analytic_hr_department_restriction/i18n/it.po,sha256=
|
3
|
+
odoo/addons/analytic_hr_department_restriction/__manifest__.py,sha256=aB8f5d1SlpumK95nohULZFOY_mVx0CzxqfquCUHVIAI,632
|
4
|
+
odoo/addons/analytic_hr_department_restriction/i18n/analytic_hr_department_restriction.pot,sha256=uQbVg05WNMZI5PIZ7qi_kHYaa9nSSK-XMQ9CCeD6je8,1508
|
5
|
+
odoo/addons/analytic_hr_department_restriction/i18n/es.po,sha256=HVDiPu7QC2HXg_VI9_-eRYyrRdxhmvhX20IQOgdwMD8,1863
|
6
|
+
odoo/addons/analytic_hr_department_restriction/i18n/it.po,sha256=8VrhQKMebcr-0D5FoOseRiIwXhPltxclfbYE7Gt0_uU,1794
|
7
7
|
odoo/addons/analytic_hr_department_restriction/migrations/18.0.1.0.0/post-migration.py,sha256=kj2ryIGcGqp9_gOqlrt84dOzT45YnDt1lV5X8veQ67M,529
|
8
8
|
odoo/addons/analytic_hr_department_restriction/migrations/18.0.1.0.0/pre-migration.py,sha256=dfz7WFunAK8h44rYZOhpVkrDJwYXrBTKUL9tUbHweIk,520
|
9
|
+
odoo/addons/analytic_hr_department_restriction/migrations/18.0.1.1.0/post-migration.py,sha256=6Helx0JK1hujuL3FVvFF8mk8jK6tL9pw9xX4PsihDoY,802
|
9
10
|
odoo/addons/analytic_hr_department_restriction/models/__init__.py,sha256=Dd5CV80qJ4N-DNWSSLVB8_1O4g52NI1BcAD6dKUZ8C8,162
|
10
|
-
odoo/addons/analytic_hr_department_restriction/models/account_analytic_account.py,sha256=
|
11
|
-
odoo/addons/analytic_hr_department_restriction/models/account_analytic_plan.py,sha256=
|
12
|
-
odoo/addons/analytic_hr_department_restriction/models/ir_rule.py,sha256=
|
11
|
+
odoo/addons/analytic_hr_department_restriction/models/account_analytic_account.py,sha256=6o-Dw0Sqgxs-1hMPgLN0iBOR4hOPtgUvYeTLFpeBqqI,431
|
12
|
+
odoo/addons/analytic_hr_department_restriction/models/account_analytic_plan.py,sha256=4aYIjuzehb8gqB5YE8mM18Y6iWb8XEtpemfL5tTQK4g,1022
|
13
|
+
odoo/addons/analytic_hr_department_restriction/models/ir_rule.py,sha256=C4U4gWkF9xVz3-uypAnNEA-6OROCOwNEcyK5LL2m7pQ,2858
|
13
14
|
odoo/addons/analytic_hr_department_restriction/readme/CONFIGURE.md,sha256=bicPK24dCKqRFMJ3xXKM2vNEju-uasXlnrSE24urpeM,128
|
14
15
|
odoo/addons/analytic_hr_department_restriction/readme/CONTRIBUTORS.md,sha256=7B3TJAW9bVCbc9-u4HKUamqJSM0J1p_Z_47T3M3uXxE,83
|
15
16
|
odoo/addons/analytic_hr_department_restriction/readme/DESCRIPTION.md,sha256=cxZ4eI1mlsDZkPyu0QmcMVWYJjyZ6xJTe9dehYQCobc,353
|
16
17
|
odoo/addons/analytic_hr_department_restriction/readme/USAGE.md,sha256=11Gy5xQS9G0RYKuaPkxbccnA24_u1ixv3rksbMIUUeY,616
|
17
18
|
odoo/addons/analytic_hr_department_restriction/security/groups.xml,sha256=dN536AJfIOSRjUafmSvWpYGpqTV5no6DlLrh682yrug,423
|
18
19
|
odoo/addons/analytic_hr_department_restriction/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
19
|
-
odoo/addons/analytic_hr_department_restriction/static/description/index.html,sha256=
|
20
|
+
odoo/addons/analytic_hr_department_restriction/static/description/index.html,sha256=Azc5AX1uAaHfyDUqwJk5S1tcpKlVj5eAEyf18PkoLmQ,14390
|
20
21
|
odoo/addons/analytic_hr_department_restriction/tests/__init__.py,sha256=l6JUuT5fLrb_xYWQW-GbLXl7g0cQ3sBAdRxC5EsP8Aw,166
|
21
|
-
odoo/addons/analytic_hr_department_restriction/tests/test_analytic_hr_department_restriction.py,sha256
|
22
|
-
odoo/addons/analytic_hr_department_restriction/views/account_analytic_account_views.xml,sha256=
|
23
|
-
odoo/addons/analytic_hr_department_restriction/views/account_analytic_plan_views.xml,sha256=
|
24
|
-
odoo_addon_analytic_hr_department_restriction-18.0.1.
|
25
|
-
odoo_addon_analytic_hr_department_restriction-18.0.1.
|
26
|
-
odoo_addon_analytic_hr_department_restriction-18.0.1.
|
27
|
-
odoo_addon_analytic_hr_department_restriction-18.0.1.
|
22
|
+
odoo/addons/analytic_hr_department_restriction/tests/test_analytic_hr_department_restriction.py,sha256=voUoZlzSp4T_u_HinfYTp0H5buyMDGPguy2fbjSdIhM,7629
|
23
|
+
odoo/addons/analytic_hr_department_restriction/views/account_analytic_account_views.xml,sha256=k9bsVxS6Ic6fuzYrRzyD0drB1yTqrDbaGrjpzkP5m0g,1955
|
24
|
+
odoo/addons/analytic_hr_department_restriction/views/account_analytic_plan_views.xml,sha256=coGRnutLAR_zfGipgNCfwQ2R6CsKn9N6sx65RWVPvLg,1167
|
25
|
+
odoo_addon_analytic_hr_department_restriction-18.0.1.1.0.4.dist-info/METADATA,sha256=vUx29WthxIyu5Ieks7vvPviODUDb-U0b73KO2Z_ewj8,5129
|
26
|
+
odoo_addon_analytic_hr_department_restriction-18.0.1.1.0.4.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
27
|
+
odoo_addon_analytic_hr_department_restriction-18.0.1.1.0.4.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
28
|
+
odoo_addon_analytic_hr_department_restriction-18.0.1.1.0.4.dist-info/RECORD,,
|
File without changes
|