*: website, website_blog, website_crm, website_event, website_forum, website_hr_recruitment, website_mass_mailing, website_sale, website_sale_loyalty, website_slides This commit adds the current website displayed view xmlid outside of the iframe, on its container, so that the tours registered with registerThemeHomepageTour can continue to prepend their triggers with the view xml id. Introduce registerEditionTour: this function will allow tour maker to more easily register a tour that needs to start in the iframe's backend and go in edit mode. See merge commit for more information. task-2687506 Co-authored-by: Benjamin Vray <bvr@odoo.com> Co-authored-by: Younn Olivier <yol@odoo.com>
18 lines
734 B
Python
18 lines
734 B
Python
from odoo.tests import tagged
|
|
from odoo.addons.website.tests.test_configurator import TestConfiguratorCommon
|
|
|
|
@tagged('post_install', '-at_install')
|
|
class TestAutomaticEditor(TestConfiguratorCommon):
|
|
|
|
def test_01_automatic_editor_on_new_website(self):
|
|
# We create a lang because if the new website is displayed in this lang
|
|
# instead of the website's default one, the editor won't automatically
|
|
# start.
|
|
self.env['res.lang'].create({
|
|
'name': 'Parseltongue',
|
|
'code': 'pa_GB',
|
|
'iso_code': 'pa_GB',
|
|
'url_code': 'pa_GB',
|
|
})
|
|
self.start_tour(self.env['website'].get_client_action_url('/'), 'automatic_editor_on_new_website', login='admin')
|