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>
37 lines
1.7 KiB
XML
37 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<template id="assets_frontend" inherit_id="website.assets_frontend">
|
|
<xpath expr="//script[last()]" position="after">
|
|
<script type="text/javascript" src="/test_website/static/src/js/test_error.js"></script>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="assets_tests" name="Test Website Assets Tests" inherit_id="web.assets_tests">
|
|
<xpath expr="." position="inside">
|
|
<script type="text/javascript" src="/test_website/static/tests/tours/reset_views.js"></script>
|
|
<script type="text/javascript" src="/test_website/static/tests/tours/error_views.js"></script>
|
|
<script type="text/javascript" src="/test_website/static/tests/tours/json_auth.js"></script>
|
|
<script type="text/javascript" src="/test_website/static/tests/tours/custom_snippets.js"></script>
|
|
</xpath>
|
|
</template>
|
|
|
|
<record id="multi_url" model="website.page">
|
|
<field name="name">Multi URL test</field>
|
|
<field name="url">/multi_url</field>
|
|
<field name="website_published">False</field>
|
|
<field name="type">qweb</field>
|
|
<field name="key">test_website.multi_url</field>
|
|
<field name="website_published">True</field>
|
|
<field name="arch" type="xml">
|
|
<t t-name='multi_url'>
|
|
<div>
|
|
<a id='get' href="/get">get</a>
|
|
<form id='post' action="/post">post</form>>
|
|
<a id='get_post' href="/get_post">get_post</a>
|
|
<a id='get_post_nomultilang' href="/get_post_nomultilang">get_post_nomultilang</a>
|
|
</div>
|
|
</t>
|
|
</field>
|
|
</record>
|
|
</odoo>
|