Skip to content

Commit

Permalink
[FIX] website_sale: add missing step
Browse files Browse the repository at this point in the history
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#37377

Signed-off-by: Quentin Smetz (qsm) <[email protected]>
  • Loading branch information
Icallhimtest committed Sep 24, 2019
1 parent 895fb09 commit adc3ed5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addons/website_sale/static/src/js/tours/website_sale_shop.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down

0 comments on commit adc3ed5

Please sign in to comment.