diff --git a/addons/mail/static/src/js/discuss.js b/addons/mail/static/src/js/discuss.js
index 4370ffb0fd4..9b404e056ea 100644
--- a/addons/mail/static/src/js/discuss.js
+++ b/addons/mail/static/src/js/discuss.js
@@ -368,7 +368,7 @@ var Discuss = AbstractAction.extend({
*/
destroy: function () {
if (this.$buttons) {
- this.$buttons.off().destroy();
+ this.$buttons.off().remove();
}
this._super.apply(this, arguments);
},
diff --git a/addons/mass_mailing/__manifest__.py b/addons/mass_mailing/__manifest__.py
index b0c6daec3bd..70c83a5bb64 100644
--- a/addons/mass_mailing/__manifest__.py
+++ b/addons/mass_mailing/__manifest__.py
@@ -44,5 +44,8 @@
'demo': [
'data/mass_mailing_demo.xml',
],
+ 'qweb': [
+ 'static/src/xml/*.xml',
+ ],
'application': True,
}
diff --git a/addons/mass_mailing/controllers/__init__.py b/addons/mass_mailing/controllers/__init__.py
index 83d13fa601d..5d4b25db9c0 100644
--- a/addons/mass_mailing/controllers/__init__.py
+++ b/addons/mass_mailing/controllers/__init__.py
@@ -2,4 +2,3 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import main
-from . import web_editor
diff --git a/addons/mass_mailing/controllers/web_editor.py b/addons/mass_mailing/controllers/web_editor.py
deleted file mode 100644
index 88e9f768690..00000000000
--- a/addons/mass_mailing/controllers/web_editor.py
+++ /dev/null
@@ -1,26 +0,0 @@
-# -*- coding: utf-8 -*-
-# Part of Odoo. See LICENSE file for full copyright and licensing details.
-
-from odoo import http
-from odoo.http import request
-from odoo.addons.web_editor.controllers.main import Web_Editor
-
-
-class Web_Editor(Web_Editor):
-
- @http.route(["/website_mass_mailing/field/popup_content"], type='http', auth="user")
- def mass_mailing_FieldTextHtmlPopupTemplate(self, model=None, res_id=None, field=None, callback=None, **kwargs):
- kwargs['snippets'] = '/website/snippets'
- kwargs['template'] = 'mass_mailing.FieldTextHtmlPopupContent'
- return self.FieldTextHtml(model, res_id, field, callback, **kwargs)
-
- @http.route('/mass_mailing/field/email_template', type='http', auth="user")
- def mass_mailing_FieldTextHtmlEmailTemplate(self, model=None, res_id=None, field=None, callback=None, **kwargs):
- kwargs['snippets'] = '/mass_mailing/snippets'
- kwargs['template'] = 'mass_mailing.FieldTextHtmlInline'
- return self.FieldTextHtmlInline(model, res_id, field, callback, **kwargs)
-
- @http.route(['/mass_mailing/snippets'], type='json', auth="user", website=True)
- def mass_mailing_snippets(self):
- values = {'company_id': request.env['res.users'].browse(request.uid).company_id}
- return request.env.ref('mass_mailing.email_designer_snippets').render(values)
diff --git a/addons/mass_mailing/data/mass_mailing_demo.xml b/addons/mass_mailing/data/mass_mailing_demo.xml
index b8e403a1a6c..8819dd20202 100644
--- a/addons/mass_mailing/data/mass_mailing_demo.xml
+++ b/addons/mass_mailing/data/mass_mailing_demo.xml
@@ -85,65 +85,115 @@
- Great stories have personality. Consider telling a great story that provides personality.
- Writing a story with personality for potential clients will assist with making a relationship connection.
- This shows up in small quirks like word choices or phrases. Write from your point of view, not from someone else's experience.
+ Great stories have personality. Consider telling a great story that provides personality. Writing a story with personality for potential clients will assist with making a relationship connection. This shows up in small quirks like word choices or phrases. Write from your point of view, not from someone else's experience.
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Your Company
-
-
-
-
-
-
-
-
-
-
-
- Great stories are for everyone even when only written for just one person.
- If you try to write with a wide general audience in mind, your story will ring false and be bland.
- No one will be interested. Write for one person. If it’s genuine for the one, it’s genuine for the rest.
-
-
-
-
-
-
- YourCompany
-
-
- Powered by Odoo
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Great stories are for everyone even when only written for just one person. If you try to write with a wide general audience in mind, your story will ring false and be bland. No one will be interested. Write for one person. If it’s genuine for the one, it’s genuine for the rest.
+
+
+
+
+
+
+
+ Powered by
+
+ Odoo
+
+