mirror of
https://github.com/bringout/oca-workflow-process.git
synced 2026-04-18 16:52:03 +02:00
Initial commit: OCA Workflow Process packages (456 packages)
This commit is contained in:
commit
d366e42934
18799 changed files with 1284507 additions and 0 deletions
|
|
@ -0,0 +1,30 @@
|
|||
from odoo.tests.common import SavepointCase
|
||||
|
||||
|
||||
class TestProjectStatus(SavepointCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
cls.ProjectStatus = cls.env["project.status"]
|
||||
cls.status = cls.ProjectStatus.create(
|
||||
{
|
||||
"name": "New Status",
|
||||
}
|
||||
)
|
||||
|
||||
def _create_project(self):
|
||||
project = self.env["project.project"].create(
|
||||
{
|
||||
"name": "Project 1",
|
||||
"project_status": self.status.id,
|
||||
}
|
||||
)
|
||||
return project
|
||||
|
||||
def test_01_project_status(self):
|
||||
project = self._create_project()
|
||||
self.assertEqual(project.project_status.id, self.status.id)
|
||||
statuses = project._read_group_status_ids(
|
||||
project.project_status, [], "status_sequence"
|
||||
)
|
||||
self.assertTrue(len(statuses) >= 1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue