Skip to content

Commit

Permalink
[14.0][MIG] project_task_dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
astirpe committed Oct 20, 2020
1 parent ddc1735 commit a895dab
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 9 deletions.
11 changes: 8 additions & 3 deletions project_task_dependency/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
# © 2016 Onestein (<http://www.onestein.eu>)
# Copyright 2016-2020 Onestein (<http://www.onestein.eu>)
# Copyright 2020 Tecnativa - Manuel Calero
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Project Task Dependencies",
"version": "13.0.1.0.0",
"version": "14.0.1.0.0",
"category": "Project",
"website": "https://github.com/OCA/project",
"summary": "Enables to define dependencies (other tasks) of a task",
"author": "Onestein,Odoo Community Association (OCA)",
"license": "AGPL-3",
"development_status": "Production/Stable",
"maintainers": ["astirpe"],
"depends": ["project"],
"data": ["views/project_task_view.xml"],
"data": [
"security/ir.model.access.csv",
"views/project_task_view.xml",
],
"installable": True,
"auto_install": False,
}
2 changes: 1 addition & 1 deletion project_task_dependency/models/project_project.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 Onestein
# Copyright 2018-2020 Onestein
# Copyright 2020 Tecnativa - Manuel Calero
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

Expand Down
4 changes: 2 additions & 2 deletions project_task_dependency/models/project_task.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2016-2018 Onestein (<http://www.onestein.eu>)
# Copyright 2016-2020 Onestein (<http://www.onestein.eu>)
# Copyright 2020 Tecnativa - Manuel Calero
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

Expand Down Expand Up @@ -81,7 +81,7 @@ def _check_dependency_recursion(self):
)

def copy(self, default=None):
res = super(ProjectTask, self).copy(default)
res = super().copy(default)
if self.env.context.get("project_copy"):
self.env["project.task.copy.map"].create(
{"old_task_id": self.id, "new_task_id": res.id}
Expand Down
2 changes: 1 addition & 1 deletion project_task_dependency/models/project_task_copy_map.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 Onestein
# Copyright 2018-2020 Onestein
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models
Expand Down
4 changes: 4 additions & 0 deletions project_task_dependency/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_project_task_copy_map_project_user,access_project_task_copy_map project_user,model_project_task_copy_map,project.group_project_user,1,1,1,1
access_project_task_copy_map_base_user,access_project_task_copy_map base_user,model_project_task_copy_map,base.group_user,1,0,0,0
access_project_task_copy_map_portal,access_project_task_copy_map portal,model_project_task_copy_map,base.group_portal,1,0,0,0
4 changes: 2 additions & 2 deletions project_task_dependency/tests/test_project_task_dependency.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2016-2018 Onestein (<http://www.onestein.eu>)
# Copyright 2016-2020 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo.exceptions import ValidationError
Expand All @@ -7,7 +7,7 @@

class TestProjectTaskDependency(TransactionCase):
def setUp(self):
super(TestProjectTaskDependency, self).setUp()
super().setUp()

self.project1 = self.env["project.project"].create(
{"name": "Nice Project Test Dependencies One"}
Expand Down

0 comments on commit a895dab

Please sign in to comment.