diff --git a/addons/website/static/src/js/theme_preview_kanban.js b/addons/website/static/src/js/theme_preview_kanban.js index a8c573b950c..951335ed9d9 100644 --- a/addons/website/static/src/js/theme_preview_kanban.js +++ b/addons/website/static/src/js/theme_preview_kanban.js @@ -24,13 +24,15 @@ var ThemePreviewKanbanController = KanbanController.extend(ThemePreviewControlle href: '/', innerHTML: '', }); - const smallBreadcumb = Object.assign(document.createElement('small'), { - className: 'mx-2 text-muted', - innerHTML: _lt("Don't worry, you can switch later."), - }); + if (!this.initialState.context.module) { // not coming from res.config.settings + const smallBreadcumb = Object.assign(document.createElement('small'), { + className: 'mx-2 text-muted', + innerHTML: _lt("Don't worry, you can switch later."), + }); + this._controlPanelWrapper.el.querySelector('.o_cp_top li').appendChild(smallBreadcumb); + this._controlPanelWrapper.el.querySelector('.o_cp_top').appendChild(websiteLink); + } this._controlPanelWrapper.el.querySelector('.o_cp_top .breadcrumb li.active').classList.add('text-black-75'); - this._controlPanelWrapper.el.querySelector('.o_cp_top').appendChild(websiteLink); - this._controlPanelWrapper.el.querySelector('.o_cp_top li').appendChild(smallBreadcumb); }, /** * Called when user click on any button in kanban view. diff --git a/addons/website/views/res_config_settings_views.xml b/addons/website/views/res_config_settings_views.xml index 282a5efca8b..8c48cfeebe3 100644 --- a/addons/website/views/res_config_settings_views.xml +++ b/addons/website/views/res_config_settings_views.xml @@ -40,7 +40,7 @@