summaryrefslogtreecommitdiff
path: root/addons/website_mail
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2019-02-06 14:29:07 +0000
committerqsm-odoo <qsm@odoo.com>2019-02-26 17:09:22 +0000
commit27fca749af30d7dce448f6632132422df8d8a7c1 (patch)
treec644db5efbb12cde722d059d250a83ec0de8aed7 /addons/website_mail
parentc3da83b40a6431f607cf69b8c2a7a922a6e5b52c (diff)
[REF] *: use 'frontend' system in non-website apps
* account, auth_signup, payment, portal, project, sale, sale_management, web_unsplash, website, website_mail, website_rating, website_sale This commit does probably not do what is stated for all non-website apps but it is a first step. It also uses the system in apps which could have already used it but did not. Part of https://github.com/odoo/odoo/pull/29442 task-1932066
Diffstat (limited to 'addons/website_mail')
-rw-r--r--addons/website_mail/static/src/js/website_mail.js17
1 files changed, 5 insertions, 12 deletions
diff --git a/addons/website_mail/static/src/js/website_mail.js b/addons/website_mail/static/src/js/website_mail.js
index 711df6ebbae..473ed4b4128 100644
--- a/addons/website_mail/static/src/js/website_mail.js
+++ b/addons/website_mail/static/src/js/website_mail.js
@@ -1,20 +1,13 @@
-odoo.define('website_mail.thread', function(require) {
+odoo.define('website_mail.thread', function (require) {
'use strict';
-var ajax = require('web.ajax');
-var core = require('web.core');
-
-var qweb = core.qweb;
-
-var PortalChatter = require('portal.chatter').PortalChatter;
+var portalChatter = require('portal.chatter');
/**
* Extends Frontend Chatter to handle rating
*/
-PortalChatter.include({
- _loadTemplates: function(){
- return $.when(this._super(), ajax.loadXML('/website_mail/static/src/xml/website_mail.xml', qweb));
- },
+portalChatter.PortalChatter.include({
+ xmlDependencies: (portalChatter.PortalChatter.prototype.xmlDependencies || [])
+ .concat(['/website_mail/static/src/xml/website_mail.xml']),
});
-
});