From 09e51c8809b5ff8fbaf928e9ce10498e0ebbde21 Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Fri, 18 Jun 2021 14:13:49 +0200 Subject: [PATCH] [FIX] web_tour: dialog closes when a tour is launched Be in debug=tests. Go on a Form View for res_partner. Go in the debug menu => start tour start the tour "mail/static/tests/tours/mail_full_composer_test_tour.js" Before this commit, the start tour dialog is not closed After this commit, the dialog is closed --- addons/web_tour/static/src/debug/tour_dialog_component.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/web_tour/static/src/debug/tour_dialog_component.js b/addons/web_tour/static/src/debug/tour_dialog_component.js index 713a33a4e9b..e57079e00f0 100644 --- a/addons/web_tour/static/src/debug/tour_dialog_component.js +++ b/addons/web_tour/static/src/debug/tour_dialog_component.js @@ -24,6 +24,7 @@ export default class ToursDialog extends Dialog { */ _onStartTour(ev) { this.tourService.reset(ev.target.dataset.name); + this.close(); } /** * Starts the given tour in test mode. @@ -33,6 +34,7 @@ export default class ToursDialog extends Dialog { */ _onTestTour(ev) { this.tourService.run(ev.target.dataset.name); + this.close(); } } ToursDialog.bodyTemplate = "web_tour.ToursDialog";