From dcd644a7e0a772520cf98fc20392eeb6f34fd582 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Thu, 31 Dec 2020 09:09:06 +0000 Subject: [PATCH] [REF] website: remove compatibility code for header mono-editable zones In 14.0 stable version, we merged [1] with JS compatibility code to support the change. This commit now removes that compatibility code thanks to related migration script. [1]: https://github.com/odoo/odoo/pull/61835 closes odoo/odoo#63934 Related: odoo/upgrade#2052 Signed-off-by: Quentin Smetz (qsm) --- addons/website/static/src/js/editor/wysiwyg_multizone.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/addons/website/static/src/js/editor/wysiwyg_multizone.js b/addons/website/static/src/js/editor/wysiwyg_multizone.js index 6ebdce30492..42b102ba601 100644 --- a/addons/website/static/src/js/editor/wysiwyg_multizone.js +++ b/addons/website/static/src/js/editor/wysiwyg_multizone.js @@ -85,15 +85,6 @@ var WysiwygMultizone = Wysiwyg.extend({ } } - // TODO remove this code in master by migrating users who did not - // receive the XML change about the 'oe_structure_solo' class (the - // header original XML is now correct but we changed specs after - // release to not allow multi snippets drop zones in the header). - const $headerZones = this._getEditableArea().filter((i, el) => el.closest('header#top') !== null); - // oe_structure_multi to ease custo in stable - const selector = '.oe_structure[id*="oe_structure"]:not(.oe_structure_multi)'; - $headerZones.find(selector).addBack(selector).addClass('oe_structure_solo'); - return this._super.apply(this, arguments).then(() => { // Showing Mega Menu snippets if one dropdown is already opened if (this.$('.o_mega_menu').hasClass('show')) {