Skip to content

Commit

Permalink
[MIG] project_category: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mymage committed May 12, 2024
1 parent d18b1bb commit 342bbd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions project_category/models/project_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class ProjectType(models.Model):
complete_name = fields.Char(
compute="_compute_complete_name",
store=True,
recursive=True,
)
description = fields.Text(translate=True)
project_ok = fields.Boolean(
Expand Down
5 changes: 3 additions & 2 deletions project_category/tests/test_project_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@


class TestProjectCategory(TransactionCase):
def setUp(self):
super(TestProjectCategory, self).setUp()
@classmethod
def setUpClass(self):
super().setUpClass()
self.cat = self.env["project.type"].create({"name": "General"})
self.cat2 = self.env["project.type"].create({"name": "Discussion"})

Expand Down

0 comments on commit 342bbd4

Please sign in to comment.