From 42420815bf387497ce4a3435de73d565584b7ccc Mon Sep 17 00:00:00 2001 From: Wolfgang Pichler Date: Fri, 3 Jan 2025 18:01:21 +0100 Subject: [PATCH] [MIG] project_task_code: Migration to 18.0 --- project_task_code/__manifest__.py | 2 +- project_task_code/models/project_task.py | 4 ++-- project_task_code/tests/test_project_task_code.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/project_task_code/__manifest__.py b/project_task_code/__manifest__.py index 8e35a36d32..3b6c7376c7 100644 --- a/project_task_code/__manifest__.py +++ b/project_task_code/__manifest__.py @@ -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, " diff --git a/project_task_code/models/project_task.py b/project_task_code/models/project_task.py index 520e908b07..04e6c538e1 100644 --- a/project_task_code/models/project_task.py +++ b/project_task_code/models/project_task.py @@ -1,7 +1,7 @@ # Copyright 2016 Tecnativa # 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", @@ -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!", ), ] diff --git a/project_task_code/tests/test_project_task_code.py b/project_task_code/tests/test_project_task_code.py index 07d9cd72ca..2fddcc4e5f 100644 --- a/project_task_code/tests/test_project_task_code.py +++ b/project_task_code/tests/test_project_task_code.py @@ -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, f"[{code}] Task Testing Get Name") def test_name_search(self): project_task = self.env["project.task"].create(