From a165decd197af350ce7dd9b56ae05ce0877a23f9 Mon Sep 17 00:00:00 2001 From: Benoit Socias Date: Fri, 22 Jan 2021 12:25:23 +0000 Subject: [PATCH] [FIX] mass_mailing: disable the ability to save custom snippets Before this commit saving a custom snippet inside an email template produced a "cross origin" error related to the combination of the save & reload mechanism with the fact that the email template editor is inside an iframe. After this commit saving a custom snippet inside an email template is not available anymore. Given that fixing the reload problem would be only temporary -while quite complex-, it has been decided to disable the feature until the editor allows for cleaning snippets without saving them. Decided during task-2374802 closes odoo/odoo#65052 X-original-commit: 86333160f92c16bc61f36b413caed325f8ac59a0 Signed-off-by: Quentin Smetz (qsm) Co-authored-by: qsm-odoo --- addons/mass_mailing/views/snippets_themes.xml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/addons/mass_mailing/views/snippets_themes.xml b/addons/mass_mailing/views/snippets_themes.xml index 00933d63cae..a88e25034ff 100644 --- a/addons/mass_mailing/views/snippets_themes.xml +++ b/addons/mass_mailing/views/snippets_themes.xml @@ -851,14 +851,6 @@ data-drop-near="[data-oe-field='body_html']:not(:has(.o_layout)) > *, .oe_structure > *" data-drop-in="[data-oe-field='body_html']:not(:has(.o_layout)), .oe_structure"/> -
- -
-