[IMP] web_tour, *: allow to extend timeout limit for specific steps

* website

Unfortunately, we cannot guarantee that the duration between two odoo
actions is always less than 10 seconds. Indeed, loading translations
is for example quite slow. With this commit, we are now able to modify
the timeout duration for a specific step.
This commit is contained in:
qsm-odoo
2017-07-24 17:55:00 +02:00
parent 35601dfe6f
commit 67e2372d61
2 changed files with 2 additions and 1 deletions
@@ -447,7 +447,7 @@ return core.Class.extend(mixins.EventDispatcherMixin, ServicesMixin, {
this._stop_running_tour_timeout();
this.running_tour_timeout = setTimeout((function() {
this._consume_tour(tour_name, _.str.sprintf("Tour %s failed at step %s", tour_name, step.trigger));
}).bind(this), RUNNING_TOUR_TIMEOUT + this.running_step_delay);
}).bind(this), (step.timeout || RUNNING_TOUR_TIMEOUT) + this.running_step_delay);
},
_stop_running_tour_timeout: function () {
clearTimeout(this.running_tour_timeout);
@@ -24,6 +24,7 @@ tour.register('rte_translator', {
content: "go to english version",
trigger: '.js_language_selector a[data-lang="en_US"]',
extra_trigger: 'html[lang*="fr"]',
timeout: 60000,
}, {
content: "Open new page menu",
trigger: '#oe_main_menu_navbar a[data-action=new_page]',