From 7fc9343344c415cb359ebac2ec5262398680f490 Mon Sep 17 00:00:00 2001 From: "Augustin (duau)" Date: Fri, 5 Sep 2025 13:16:55 +0000 Subject: [PATCH] [FIX] *: update tours to use new DOM structure *: theme_bookstore, theme_kiddo, theme_notes, theme_odoo_experts DOM structure was modified in website refactor [1], those tours were still using the former one because they were silently disabled during the refactor. See community PR for details (which re-enables them). [1]: https://github.com/odoo/odoo/commit/9fe45e2b7ddbbfd0445ffe25a859e67a316d02b2 Related to opw-5020952 Related to opw-5040694 X-original-commit: 59f35e4ddeb0dcc49da3dfa6313c729e1a529c61 Part-of: odoo/design-themes#1141 Related: odoo/odoo#225809 Signed-off-by: Quentin Smetz (qsm) Signed-off-by: Augustin Dupin (duau) --- theme_bookstore/static/src/js/tour.js | 2 +- theme_kiddo/static/src/js/tour.js | 2 +- theme_notes/static/src/js/tour.js | 2 +- theme_odoo_experts/static/src/js/tour.js | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/theme_bookstore/static/src/js/tour.js b/theme_bookstore/static/src/js/tour.js index 5cdc85aea..7206495ed 100644 --- a/theme_bookstore/static/src/js/tour.js +++ b/theme_bookstore/static/src/js/tour.js @@ -41,6 +41,6 @@ wTourUtils.registerThemeHomepageTour("bookstore_tour", () => [ ...wTourUtils.insertSnippet(snippets[3]), ...wTourUtils.insertSnippet(snippets[4]), ...wTourUtils.clickOnSnippet(snippets[4]), - wTourUtils.changeOption('ContainerWidth', 'we-button-group.o_we_user_value_widget', _t('width')), + wTourUtils.changeOption('Box Call to Action', 'setContainerWidth', _t('width')), wTourUtils.goBackToBlocks(), ]); diff --git a/theme_kiddo/static/src/js/tour.js b/theme_kiddo/static/src/js/tour.js index 23ed927da..c5926933f 100644 --- a/theme_kiddo/static/src/js/tour.js +++ b/theme_kiddo/static/src/js/tour.js @@ -39,7 +39,7 @@ wTourUtils.registerThemeHomepageTour("kiddo_tour", () => [ ...wTourUtils.insertSnippet(snippets[2]), ...wTourUtils.insertSnippet(snippets[3]), ...wTourUtils.clickOnSnippet(snippets[3]), - wTourUtils.changeOption('ContainerWidth', 'we-button-group.o_we_user_value_widget', _t('width')), + wTourUtils.changeOption('Items', 'setContainerWidth', _t('width')), wTourUtils.goBackToBlocks(), ...wTourUtils.insertSnippet(snippets[4]), ]); diff --git a/theme_notes/static/src/js/tour.js b/theme_notes/static/src/js/tour.js index 97fd9992b..55c8fa330 100644 --- a/theme_notes/static/src/js/tour.js +++ b/theme_notes/static/src/js/tour.js @@ -54,7 +54,7 @@ wTourUtils.registerThemeHomepageTour("notes_tour", () => [ ...wTourUtils.insertSnippet(snippets[1]), ...wTourUtils.insertSnippet(snippets[2]), ...wTourUtils.clickOnSnippet(snippets[2]), - wTourUtils.changeOption('ContainerWidth', 'we-button-group.o_we_user_value_widget', _t('width')), + wTourUtils.changeOption('Columns', 'setContainerWidth', _t('width')), wTourUtils.goBackToBlocks(), ...wTourUtils.insertSnippet(snippets[3]), ...wTourUtils.insertSnippet(snippets[4]), diff --git a/theme_odoo_experts/static/src/js/tour.js b/theme_odoo_experts/static/src/js/tour.js index dc532f5d2..b64c97630 100644 --- a/theme_odoo_experts/static/src/js/tour.js +++ b/theme_odoo_experts/static/src/js/tour.js @@ -52,8 +52,8 @@ wTourUtils.registerThemeHomepageTour("odoo_experts_tour", () => [ ...wTourUtils.insertSnippet(snippets[4]), ...wTourUtils.insertSnippet(snippets[5]), ...wTourUtils.clickOnSnippet(snippets[5], 'top'), - wTourUtils.changeOption('ColoredLevelBackground', 'we-button[data-toggle-bg-shape]', _t('Background Shape')), - wTourUtils.selectNested('we-select-page', 'BackgroundShape', ':not(.o_we_pager_controls)', _t('Background Shape')), + wTourUtils.changeOption('FAQ Block', 'toggleBgShape', _t('Background Shape')), + wTourUtils.clickOnElement("shape", ".builder_select_page [data-action-id='setBackgroundShape']"), wTourUtils.goBackToBlocks(), ...wTourUtils.insertSnippet(snippets[6]), ]);