From 9592392158bdd114a438c9cce77e0d3349d24d1e Mon Sep 17 00:00:00 2001 From: "Arthur Detroux (ard)" Date: Tue, 21 Nov 2023 10:24:16 +0100 Subject: [PATCH] [FIX] theme_aviator, theme_odoo_experts: Update homepage tours Since [1], some blocks in theme_aviato and theme_odoo_experts no longer have shapes by default, so add a step to toggle a shape. [1]: https://github.com/odoo/design-themes/commit/d206c119720d557c11320ebb3d7339890b8f9efa opw-3595512 closes odoo/design-themes#746 X-original-commit: bea0f57ca4716dd2fafc2d3e3c0a328b0c6f2351 Related: odoo/odoo#142362 Signed-off-by: Quentin Smetz (qsm) --- theme_aviato/static/src/js/tour.js | 2 +- theme_odoo_experts/static/src/js/tour.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/theme_aviato/static/src/js/tour.js b/theme_aviato/static/src/js/tour.js index 6ee67dad4..b2d4067a5 100644 --- a/theme_aviato/static/src/js/tour.js +++ b/theme_aviato/static/src/js/tour.js @@ -41,6 +41,6 @@ wTourUtils.registerThemeHomepageTour("aviato_tour", () => [ wTourUtils.dragNDrop(snippets[4]), wTourUtils.dragNDrop(snippets[5]), wTourUtils.clickOnSnippet(snippets[5], 'top'), - wTourUtils.changeOption('BackgroundShape', 'we-toggler', _t('Background Shape')), + 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')), ]); diff --git a/theme_odoo_experts/static/src/js/tour.js b/theme_odoo_experts/static/src/js/tour.js index c5ad83272..16acaa1b9 100644 --- a/theme_odoo_experts/static/src/js/tour.js +++ b/theme_odoo_experts/static/src/js/tour.js @@ -45,7 +45,7 @@ wTourUtils.registerThemeHomepageTour("odoo_experts_tour", () => [ wTourUtils.dragNDrop(snippets[4]), wTourUtils.dragNDrop(snippets[5]), wTourUtils.clickOnSnippet(snippets[5], 'top'), - wTourUtils.changeOption('BackgroundShape', 'we-toggler', _t('Background Shape')), + 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.goBackToBlocks(), wTourUtils.dragNDrop(snippets[6]),