19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:56 +01:00
parent a2f74aefd8
commit 4a4d12c333
844 changed files with 212348 additions and 270090 deletions

View file

@ -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')