diff --git a/support_branding/static/src/js/support_branding.js b/support_branding/static/src/js/support_branding.js index c95891aae..95db62a55 100644 --- a/support_branding/static/src/js/support_branding.js +++ b/support_branding/static/src/js/support_branding.js @@ -131,20 +131,20 @@ odoo.define("support_branding.CrashManager", function (require) { } ev.preventDefault(); var error_code = ""; + var body_html = ""; var desc = self.wysiwyg.$editor && self.wysiwyg.$editor.length ? self.wysiwyg.getValue() : $description.val(); - desc = jQuery("
").text(desc); - error_code = jQuery("
").text(body);
+                        desc = `
${desc}
`; + error_code = `
${body}
`; + body_html = `
${desc}
${error_code}
`; var params = { state: "outgoing", auto_delete: true, email_to: self.support_cp_email, subject: subject, - body_html: jQuery("
") - .append(desc, error_code.html()) - .text(), + body_html: body_html, }; self._rpc({ model: "mail.mail",