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,3 @@
|
|||
# Copyright Binhex 2024
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0).
|
||||
from . import test_task_project_status
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
# Copyright Binhex 2024
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0).
|
||||
from odoo.tests.common import TransactionCase
|
||||
|
||||
|
||||
class TestTaskProjectStatus(TransactionCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super(TestTaskProjectStatus, cls).setUpClass()
|
||||
cls.stage = cls.env["project.project.stage"].create(
|
||||
{
|
||||
"name": "Stage",
|
||||
}
|
||||
)
|
||||
cls.project = cls.env["project.project"].create(
|
||||
{
|
||||
"name": " Test Project",
|
||||
"stage_id": cls.stage.id,
|
||||
}
|
||||
)
|
||||
cls.task = cls.env["project.task"].create(
|
||||
{
|
||||
"name": "Test Task",
|
||||
"project_id": cls.project.id,
|
||||
}
|
||||
)
|
||||
|
||||
def test_project_status(self):
|
||||
self.assertEqual(self.task.project_status.id, self.stage.id)
|
||||
self.project.stage_id = self.env["project.project.stage"].create(
|
||||
{
|
||||
"name": "New Stage",
|
||||
}
|
||||
)
|
||||
self.assertEqual(self.task.project_status.id, self.project.stage_id.id)
|
||||
Loading…
Add table
Add a link
Reference in a new issue