mirror of
https://github.com/bringout/oca-project.git
synced 2026-04-18 13:42:08 +02:00
Move 124 sale modules to oca-sale, create oca-project with 56 project modules from oca-workflow-process
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
9eb7ae5807
commit
6094c218b2
2332 changed files with 125826 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
from . import test_status
|
||||
|
|
@ -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