summaryrefslogtreecommitdiff
path: root/addons/website_forum/static/src
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2019-01-22 17:35:23 +0000
committerqsm-odoo <qsm@odoo.com>2019-01-22 17:55:00 +0000
commitcb7589aaa5902c56ae5cbb9cee7b81b6b21bacb7 (patch)
tree843b32fb277ad8750b8f24990eca9f44b7f69f71 /addons/website_forum/static/src
parent6521cf4f662a62912b54f52a1236935634913053 (diff)
[REF] website, *: rename and simplify web_editor.context
* website_forum, website_gengo, website_mail_channel, website_sale Following the new editor's merge at https://github.com/odoo/odoo/pull/29775, the web_editor.context module was moved to website without being renamed. This commit renames it to website.context but also merge the website extension that was made to that context directly within its definition. closes odoo/odoo#30409
Diffstat (limited to 'addons/website_forum/static/src')
-rw-r--r--addons/website_forum/static/src/js/website_forum.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/website_forum/static/src/js/website_forum.js b/addons/website_forum/static/src/js/website_forum.js
index d8aa5f4c9b2..6e9f3577cf1 100644
--- a/addons/website_forum/static/src/js/website_forum.js
+++ b/addons/website_forum/static/src/js/website_forum.js
@@ -2,7 +2,7 @@ odoo.define('website_forum.website_forum', function (require) {
'use strict';
var core = require('web.core');
-var weContext = require('web_editor.context');
+var wContext = require('website.context');
var Wysiwyg = require('web_editor.wysiwyg');
var rootWidget = require('root.widget');
var sAnimations = require('website.content.snippets.animation');
@@ -144,7 +144,7 @@ sAnimations.registryObject.add('websiteForum', sAnimations.Class.extend({
toolbar: toolbar,
styleWithSpan: false,
recordInfo: {
- context: weContext.get(),
+ context: wContext.get(),
res_model: 'forum.post',
res_id: +window.location.pathname.split('-').pop(),
},