mirror of
https://github.com/bringout/oca-project.git
synced 2026-04-19 02:22:01 +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,39 @@
|
|||
from odoo.tests import new_test_user
|
||||
from odoo.tests.common import TransactionCase
|
||||
|
||||
|
||||
class ProjectMilestoneStatusCommon(TransactionCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
|
||||
cls.timesheet_line_model = cls.env["account.analytic.line"]
|
||||
cls.project1 = cls.env["project.project"].create({"name": "Project 1"})
|
||||
cls.milestone1 = cls.env["project.milestone"].create(
|
||||
{"name": "Milestone 1", "project_id": cls.project1.id}
|
||||
)
|
||||
cls.user = new_test_user(
|
||||
cls.env, login="test-user", groups="hr_timesheet.group_hr_timesheet_user"
|
||||
)
|
||||
cls.employee_1 = cls.env["hr.employee"].create(
|
||||
{
|
||||
"name": "Test employee 1",
|
||||
"user_id": cls.user.id,
|
||||
}
|
||||
)
|
||||
cls.task1 = cls.env["project.task"].create(
|
||||
{
|
||||
"name": "name1",
|
||||
"project_id": cls.project1.id,
|
||||
"milestone_id": cls.milestone1.id,
|
||||
"planned_hours": 5.0,
|
||||
}
|
||||
)
|
||||
cls.task2 = cls.env["project.task"].create(
|
||||
{
|
||||
"name": "name2",
|
||||
"project_id": cls.project1.id,
|
||||
"milestone_id": cls.milestone1.id,
|
||||
"planned_hours": 5.0,
|
||||
}
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue