From 248775c312cb41b2b38e26863dc6b59e3fc4c733 Mon Sep 17 00:00:00 2001 From: FrancoisGe Date: Mon, 5 May 2025 15:17:15 +0200 Subject: [PATCH 1/2] [FIX] web: unskip test for mysterious egg --- addons/web/tests/test_js.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/addons/web/tests/test_js.py b/addons/web/tests/test_js.py index de5cffca69e40..98d82c75e450b 100644 --- a/addons/web/tests/test_js.py +++ b/addons/web/tests/test_js.py @@ -140,8 +140,6 @@ def test_get_hoot_filter(self): self._test_params = [('-', '-@web/core/autocomplete,-@web/core/autocomplete2')] self.assertEqual(self.get_hoot_filters(), '&test=69a6561d&suite=69a6561d&test=cb246db5&suite=cb246db5') -# TODO master-mysterious-egg fix error -@unittest.skip("prepare mysterious-egg for merging") @odoo.tests.tagged('post_install', '-at_install') class WebSuite(QunitCommon, HOOTCommon): From 4d90db862df0a0c495af79ff068db5b836dbe01c Mon Sep 17 00:00:00 2001 From: FrancoisGe Date: Tue, 6 May 2025 08:30:15 +0200 Subject: [PATCH 2/2] [FIX] web: wip 2 --- .../plugins/options/header_border_option.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/addons/html_builder/static/src/website_builder/plugins/options/header_border_option.js b/addons/html_builder/static/src/website_builder/plugins/options/header_border_option.js index c1f63214543d0..991b8b050d69c 100644 --- a/addons/html_builder/static/src/website_builder/plugins/options/header_border_option.js +++ b/addons/html_builder/static/src/website_builder/plugins/options/header_border_option.js @@ -1,6 +1,8 @@ import { BaseOptionComponent, useDomState } from "@html_builder/core/utils"; import { BorderConfigurator } from "@html_builder/plugins/border_configurator_option"; import { ShadowOption } from "@html_builder/plugins/shadow_option"; +import { onWillStart } from "@odoo/owl"; +import { Deferred } from "@web/core/utils/concurrency"; export class HeaderBorderOption extends BaseOptionComponent { static template = "website.HeaderBorderOption"; @@ -8,6 +10,16 @@ export class HeaderBorderOption extends BaseOptionComponent { static components = { BorderConfigurator, ShadowOption }; setup() { + onWillStart(() => { + const def = new Deferred(); + console.log("HeaderBorderOption setup"); + + setTimeout(() => { + def.resolve(); + }, 2000); + console.log("HeaderBorderOption setup end"); + return def; + }); super.setup(); this.domState = useDomState((editingElement) => ({ withRoundCorner: !editingElement.classList.contains("o_header_force_no_radius"),