mirror of
https://github.com/bringout/oca-ocb-project.git
synced 2026-04-19 23:41:59 +02:00
19.0 vanilla
This commit is contained in:
parent
a2f74aefd8
commit
4a4d12c333
844 changed files with 212348 additions and 270090 deletions
|
|
@ -4,14 +4,14 @@ from odoo.tests import HttpCase, tagged
|
|||
|
||||
@tagged('post_install', '-at_install')
|
||||
class TestProjectUpdateUi(HttpCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
|
||||
# Enable the "Milestones" feature to be able to create milestones on this tour.
|
||||
cls.env['res.config.settings'] \
|
||||
.create({'group_project_milestone': True}) \
|
||||
.execute()
|
||||
|
||||
def test_01_project_tour(self):
|
||||
self.start_tour("/web", 'project_update_tour', login="admin")
|
||||
# Enable milestones to avoid a different behavior when running the tour with or without demo data.
|
||||
# Indeed, when we check Milestones on the Settings tab of a newly created project,
|
||||
# we ensure milestones are globally enabled. If the feature was disabled, it causes a full page reload.
|
||||
# The tour step should then have a expectUnloadPage depending on whether milestones are already enabled.
|
||||
# As it is too complicated to determine this value from the tour itself, we avoid this page reload completely.
|
||||
self.env.ref('base.group_user').implied_ids |= self.env.ref('project.group_project_milestone')
|
||||
|
||||
self.start_tour("/odoo", 'project_update_tour', login="admin")
|
||||
self.start_tour("/odoo", 'project_tour', login="admin")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue