From d5b8215b24210b1f2cc3873f79a0ecdc85477398 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Thu, 16 May 2019 12:13:39 +0000 Subject: [PATCH] [FIX] web_tour: no step - Create a tour with only one step for Community `edition: 'community'` - Install a database in Enterprise `tip.in_modal` in `_check_for_tooltip` cashes since `tip` is undefined. opw-1998603 closes odoo/odoo#33430 Signed-off-by: Nicolas Martinelli (nim) --- addons/web_tour/static/src/js/tour_manager.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/web_tour/static/src/js/tour_manager.js b/addons/web_tour/static/src/js/tour_manager.js index 32e7af075bf..771f1372ad3 100644 --- a/addons/web_tour/static/src/js/tour_manager.js +++ b/addons/web_tour/static/src/js/tour_manager.js @@ -193,6 +193,9 @@ return core.Class.extend(mixins.EventDispatcherMixin, ServicesMixin, { * @returns {boolean} true if a tip was found and activated/updated */ _check_for_tooltip: function (tip, tour_name) { + if (tip === undefined) { + return true; + } if ($('body').hasClass('o_ui_blocked')) { this._deactivate_tip(tip);