mirror of
https://github.com/bringout/oca-ocb-project.git
synced 2026-04-20 00:22:03 +02:00
19.0 vanilla
This commit is contained in:
parent
a2f74aefd8
commit
4a4d12c333
844 changed files with 212348 additions and 270090 deletions
|
|
@ -9,7 +9,42 @@ class TestUi(odoo.tests.HttpCase):
|
|||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
cls.env['res.config.settings'].create({'group_project_milestone': True}).execute()
|
||||
cls.env.ref('base.group_user').sudo().implied_ids |= cls.env.ref('project.group_project_milestone')
|
||||
|
||||
def test_01_project_tour(self):
|
||||
self.start_tour("/web", 'project_tour', login="admin")
|
||||
self.start_tour("/odoo", 'project_tour', login="admin")
|
||||
|
||||
def test_project_task_history(self):
|
||||
"""This tour will check that the history works properly."""
|
||||
stage = self.env['project.task.type'].create({'name': 'To Do'})
|
||||
_dummy, project2 = self.env['project.project'].create([{
|
||||
'name': 'Without tasks project',
|
||||
'type_ids': stage.ids,
|
||||
}, {
|
||||
'name': 'Test History Project',
|
||||
'type_ids': stage.ids,
|
||||
}])
|
||||
|
||||
self.env['project.task'].create({
|
||||
'name': 'Test History Task',
|
||||
'stage_id': stage.id,
|
||||
'project_id': project2.id,
|
||||
})
|
||||
|
||||
self.start_tour('/odoo?debug=1', 'project_task_history_tour', login='admin')
|
||||
|
||||
def test_project_task_last_history_steps(self):
|
||||
"""This tour will check that the history works properly."""
|
||||
stage = self.env['project.task.type'].create({'name': 'To Do'})
|
||||
project = self.env['project.project'].create([{
|
||||
'name': 'Test History Project',
|
||||
'type_ids': stage.ids,
|
||||
}])
|
||||
|
||||
self.env['project.task'].create({
|
||||
'name': 'Test History Task',
|
||||
'stage_id': stage.id,
|
||||
'project_id': project.id,
|
||||
})
|
||||
|
||||
self.start_tour('/odoo', 'project_task_last_history_steps_tour', login='admin')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue