From 62a71da538c7bbee0fd7e868ab09e55a8be2dac9 Mon Sep 17 00:00:00 2001 From: "Stefan-Calin Crainiciuc (stcc)" Date: Tue, 6 Dec 2022 10:08:09 +0000 Subject: [PATCH] [FIX] mass_mailing*: made demo mailing editable *: _sale, _crm Steps to reproduce: - install Email Marketing - duplicate an existing demo template - edit > drag a block from the editor onto the email Issue: `Traceback: Uncaught Promise > Cannot read properties of undefined (reading 'droppable')` This happens because the email templates are not editable, which means no dropzones can be attached to them. Solution: Add classes 'oe_structure' and 'o_editable' to one div in the templates so that at least one dropzone can be created. opw-3050732 closes odoo/odoo#111161 X-original-commit: 5f19f9c33656d8b38e827383e0dc8d65e5ebad2a Signed-off-by: Stefan-Calin Crainiciuc (stcc) --- addons/mass_mailing/data/mass_mailing_demo.xml | 2 +- addons/mass_mailing_crm/data/mass_mailing_demo.xml | 3 ++- addons/mass_mailing_sale/data/mass_mailing_demo.xml | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/addons/mass_mailing/data/mass_mailing_demo.xml b/addons/mass_mailing/data/mass_mailing_demo.xml index bccdf1e6d73..b9fadfee298 100644 --- a/addons/mass_mailing/data/mass_mailing_demo.xml +++ b/addons/mass_mailing/data/mass_mailing_demo.xml @@ -89,7 +89,7 @@
-
+