Skip to content

Commit

Permalink
[MIG] project_task_code: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wpichler committed Jan 3, 2025
1 parent 9496c12 commit 031f8cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion project_task_code/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "Sequential Code for Tasks",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"category": "Project Management",
"author": "OdooMRP team, "
"AvanzOSC, "
Expand Down
4 changes: 2 additions & 2 deletions project_task_code/models/project_task.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2016 Tecnativa <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import _, api, fields, models
from odoo import api, fields, models

PROJECT_TASK_WRITABLE_FIELDS = {
"code",
Expand All @@ -24,7 +24,7 @@ class ProjectTask(models.Model):
(
"project_task_unique_code",
"UNIQUE (company_id, code)",
_("The code must be unique!"),
"The code must be unique!",
),
]

Expand Down
2 changes: 1 addition & 1 deletion project_task_code/tests/test_project_task_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_name_get(self):
}
)
result = project_task.display_name
self.assertEqual(result, "[%s] Task Testing Get Name" % code)
self.assertEqual(result, "[{}] Task Testing Get Name".format(code))

def test_name_search(self):
project_task = self.env["project.task"].create(
Expand Down

0 comments on commit 031f8cf

Please sign in to comment.