This commit is a manual forward port of #62555. The tour test needed to be adapted because the navigation flow is slightly different: upon custom snippet creation, the editor page used to be saved and reloaded in 14.0 but this is not the case anymore. Before this commit the deletion of custom snippets failed because the button click event got intercepted by the drag'n'drop mechanism. The currentTarget of the event was used in an asynchronous call where it had already been replaced by the jQuery's event bubbling mechanism when invoking the other handler. After this commit the deletion of custom snippets works again and a test tour is introduced to make sure it does not get broken again task-2405854 closes odoo/odoo#63108 X-original-commit: 4de0519d5b54634604e22b32d91a099695378088 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com> Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
14 lines
431 B
Python
14 lines
431 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
import odoo.tests
|
|
from odoo.tools import mute_logger
|
|
|
|
|
|
@odoo.tests.common.tagged('post_install', '-at_install')
|
|
class TestCustomSnippet(odoo.tests.HttpCase):
|
|
|
|
@mute_logger('odoo.addons.http_routing.models.ir_http', 'odoo.http')
|
|
def test_01_run_tour(self):
|
|
self.start_tour("/", 'test_custom_snippet', login="admin")
|