From adc3ed5c4a35d2dc78f169ef2f3cb1e04f750a40 Mon Sep 17 00:00:00 2001 From: Denis Vermylen Date: Tue, 24 Sep 2019 13:56:13 +0000 Subject: [PATCH] [FIX] website_sale: add missing step if website_animate is installed. Website_animate suggests to animate the image when it's selected and hides the blocks. So we add a click on "Blocks" to ensure we're in the right menu before continuing. If website_animate isn't installed, this extra step doesn't alter the current behaviour. Technically this should be done in a bridge module depending on website_sale and website_animate but none exists and it's not worth creating one for this tiny fix alone. closes odoo/odoo#37377 Signed-off-by: Quentin Smetz (qsm) --- addons/website_sale/static/src/js/tours/website_sale_shop.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/website_sale/static/src/js/tours/website_sale_shop.js b/addons/website_sale/static/src/js/tours/website_sale_shop.js index e2d5315a544..6edb36dd123 100644 --- a/addons/website_sale/static/src/js/tours/website_sale_shop.js +++ b/addons/website_sale/static/src/js/tours/website_sale_shop.js @@ -44,6 +44,9 @@ odoo.define("website_sale.tour_shop", function (require) { run: function (actions) { actions.auto(".modal-footer .btn-secondary"); }, + }, { + trigger: "button.o_we_add_snippet_btn", + auto: true, }, { trigger: "#snippet_structure .oe_snippet:eq(3) .oe_snippet_thumbnail", extra_trigger: "body:not(.modal-open)",