[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) <nim@odoo.com>
This commit is contained in:
Nicolas Martinelli
2019-05-16 12:21:08 +00:00
parent 9c369a4485
commit d5b8215b24
@@ -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);