diff --git a/addons/web_editor/static/src/js/editor/snippets.editor.js b/addons/web_editor/static/src/js/editor/snippets.editor.js index 5244f44a7e9d74855c836c215c6f62a5882b9c2a..4f4964614fc04693636c9487821dd35f731075f0 100644 --- a/addons/web_editor/static/src/js/editor/snippets.editor.js +++ b/addons/web_editor/static/src/js/editor/snippets.editor.js @@ -1528,6 +1528,13 @@ var SnippetsMenu = Widget.extend({ } } + // TODO mentioning external app snippet but done as a stable fix + // that will be adapted in master: if popup snippet, do not + // allow to add it in another snippet + if ($baseBody[0].matches('.o_newsletter_popup')) { + $selectorChildren = $selectorChildren.not('.oe_structure *, [data-oe-type=html] *'); + } + $toInsert = $baseBody.clone(); if (!$selectorSiblings.length && !$selectorChildren.length) {