summaryrefslogtreecommitdiff
path: root/addons/website_slides_forum/static/src/js
diff options
context:
space:
mode:
authorDavid Beguin <dbe@odoo.com>2019-02-14 10:45:26 +0000
committerDavid Beguin <dbe@odoo.com>2019-02-18 15:15:02 +0000
commit3ab9f1d8abeec6fcbe2fd0aedcf3712c3e3f583b (patch)
tree4bf4d50910b9e0e339861a5eaa0bf48e8097d712 /addons/website_slides_forum/static/src/js
parent705376a982d64fb41800f148a167ef0fc28ce4c6 (diff)
[IMP] website_slides_forum : set communication on slide.channel at creation - frontend side
Since 556b6454dab07cdf716d404ec0db9aa51a09b165, channel can be linked to a dedicated forum. But the link could only be done in backend, in the slide.channel configuration For now on, website_publishers can create a new dedicated forum when they create a new slide.channel. Link buttons have been added in both forum and slide.channel headers to navigate easily between them. Fix the relation between course and forum in a model point of view. Task ID : 1922159 PR #31109
Diffstat (limited to 'addons/website_slides_forum/static/src/js')
-rw-r--r--addons/website_slides_forum/static/src/js/website_slides_forum.editor.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/addons/website_slides_forum/static/src/js/website_slides_forum.editor.js b/addons/website_slides_forum/static/src/js/website_slides_forum.editor.js
new file mode 100644
index 00000000000..324d70c8ea6
--- /dev/null
+++ b/addons/website_slides_forum/static/src/js/website_slides_forum.editor.js
@@ -0,0 +1,13 @@
+odoo.define('website_slides_forum.editor', function (require) {
+"use strict";
+
+var core = require('web.core');
+var QWeb = core.qweb;
+var WebsiteNewMenu = require('website.newMenu');
+
+ WebsiteNewMenu.include({
+ xmlDependencies: WebsiteNewMenu.prototype.xmlDependencies.concat(
+ ['/website_slides_forum/static/src/xml/website_slides_forum_channel.xml']
+ ),
+});
+});