[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) <qsm@odoo.com>
This commit is contained in:
Denis Vermylen
2019-09-24 15:16:42 +00:00
parent 895fb09b74
commit adc3ed5c4a
@@ -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)",