mirror of
https://github.com/bringout/oca-ocb-project.git
synced 2026-04-19 19:22:03 +02:00
23 lines
783 B
Python
23 lines
783 B
Python
from odoo.tests import HttpCase, tagged
|
|
|
|
|
|
@tagged("post_install", "-at_install")
|
|
class TestProjectTemplatesTour(HttpCase):
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
super().setUpClass()
|
|
cls.project_template = cls.env["project.project"].create({
|
|
"name": "Project Template",
|
|
"is_template": True,
|
|
})
|
|
cls.task_inside_template = cls.env["project.task"].create({
|
|
"name": "Task in Project Template",
|
|
"project_id": cls.project_template.id,
|
|
})
|
|
|
|
def test_project_templates_tour(self):
|
|
user_admin = self.env.ref('base.user_admin')
|
|
user_admin.write({
|
|
'email': 'mitchell.admin@example.com',
|
|
})
|
|
self.start_tour("/odoo", "project_templates_tour", login="admin")
|