[FIX] sale: sale_tour selector fix

Steps to reproduce:
- install sales
- go into debug mode
- dev tools > start tour > sale_tour

Previous behavior:
tour would fail to see that the product has been selected
and time out if you do it multiple time

Current behavior:
the tour finishes properly (even if it runs multiple times)

opw-2187218

closes odoo/odoo#45461

X-original-commit: e7a78fd76e48fbaa895d786f699d22b2278c9301
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
This commit is contained in:
jerome hanke (jhk)
2020-02-17 14:10:24 +00:00
parent 3ee9a9fbdc
commit 2ee19575be
+1 -1
View File
@@ -58,7 +58,7 @@ tour.register('sale_tour', {
},
id: 'product_selection_step'
}, {
trigger: '.o_m2o_dropdown_option a:contains("DESK0001")'
trigger: '.ui-menu.ui-widget .ui-menu-item a:contains("DESK0001")'
}, {
trigger: '.o_form_editable textarea[name="name"].product_creation_success',
run: function () {} // wait for product creation