From 91e937e0a485f52a5be5e630a8d7f1927bb77cd4 Mon Sep 17 00:00:00 2001 From: "Augustin (duau)" Date: Fri, 1 Aug 2025 12:01:34 +0200 Subject: [PATCH] [REM] theme_*: remove snippet options after website refactor *: theme_clean, theme_common, theme_enark Following the website refactor [1], that code is not used anymore. [1]: https://github.com/odoo/odoo/commit/9fe45e2b7ddbbfd0445ffe25a859e67a316d02b2 closes odoo/design-themes#1125 Related: odoo/odoo#218357 Related: odoo/enterprise#89955 Related: odoo/upgrade#8131 Signed-off-by: Serge Bayet (seba) --- theme_clean/views/snippets_options.xml | 21 --------------- .../static/src/js/compatibility_editor.js | 17 ------------ theme_enark/__manifest__.py | 1 - theme_enark/views/snippets_options.xml | 27 ------------------- 4 files changed, 66 deletions(-) delete mode 100644 theme_clean/views/snippets_options.xml delete mode 100644 theme_common/static/src/js/compatibility_editor.js delete mode 100644 theme_enark/views/snippets_options.xml diff --git a/theme_clean/views/snippets_options.xml b/theme_clean/views/snippets_options.xml deleted file mode 100644 index 8c2d68f16..000000000 --- a/theme_clean/views/snippets_options.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - diff --git a/theme_common/static/src/js/compatibility_editor.js b/theme_common/static/src/js/compatibility_editor.js deleted file mode 100644 index 0a99a2e21..000000000 --- a/theme_common/static/src/js/compatibility_editor.js +++ /dev/null @@ -1,17 +0,0 @@ -/** @odoo-module **/ - -import sOptions from "@web_editor/js/editor/snippets.options"; - -sOptions.registry.BackgroundImage.include({ - /** - * @override - */ - background: function (previewMode, widgetValue, params) { - this._super.apply(this, arguments); - - var customClass = this.$target.attr('class').match(/\b(bg-img-\d+)\b/); - if (customClass) { - this.$target.removeClass(customClass[1]); - } - }, -}); diff --git a/theme_enark/__manifest__.py b/theme_enark/__manifest__.py index 03049a9ca..54602323f 100644 --- a/theme_enark/__manifest__.py +++ b/theme_enark/__manifest__.py @@ -9,7 +9,6 @@ 'data': [ 'data/generate_primary_template.xml', 'data/ir_asset.xml', - 'views/snippets_options.xml', 'views/image_library.xml', 'views/snippets/s_closer_look.xml', diff --git a/theme_enark/views/snippets_options.xml b/theme_enark/views/snippets_options.xml deleted file mode 100644 index 21e586f8e..000000000 --- a/theme_enark/views/snippets_options.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - -