Skip to content
Snippets Groups Projects
Commit 63e19c11 authored by Christophe Simonis's avatar Christophe Simonis
Browse files

[FIX] website_sale_delivery: only load tour in frontend


This tour is useless in backend.
This patch will be required in saas~12.2 as `web_editor.base` (used in
the tour) is only available in frontend.

closes odoo/odoo#34041

Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
parent ca57218b
No related branches found
No related tags found
No related merge requests found
......@@ -11,4 +11,4 @@ class TestUi(odoo.tests.HttpCase):
'free_over': True,
'amount': 10,
})
self.phantom_js("/web", "odoo.__DEBUG__.services['web_tour.tour'].run('check_free_delivery')", "odoo.__DEBUG__.services['web_tour.tour'].tours.check_free_delivery.ready", login="admin")
self.phantom_js("/", "odoo.__DEBUG__.services['web_tour.tour'].run('check_free_delivery')", "odoo.__DEBUG__.services['web_tour.tour'].tours.check_free_delivery.ready", login="admin")
......@@ -19,11 +19,6 @@
<xpath expr="." position="inside">
<script type="text/javascript" src="/website_sale_delivery/static/src/js/website_sale_delivery.js"></script>
<link rel="stylesheet" type="text/scss" href="/website_sale_delivery/static/src/scss/website_sale_delivery.scss"/>
</xpath>
</template>
<template id="assets_common" name="Website Sale Common Assets" inherit_id="web.assets_common">
<xpath expr="." position="inside">
<script type="text/javascript" src="/website_sale_delivery/static/src/js/website_free_delivery_tour.js"></script>
</xpath>
</template>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment