summaryrefslogtreecommitdiff
path: root/addons/website_forum/static/src/js/website_forum.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/website_forum/static/src/js/website_forum.js')
-rw-r--r--addons/website_forum/static/src/js/website_forum.js3
1 files changed, 1 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 1791ac1a5c5..612704e42bf 100644
--- a/addons/website_forum/static/src/js/website_forum.js
+++ b/addons/website_forum/static/src/js/website_forum.js
@@ -2,7 +2,6 @@ odoo.define('website_forum.website_forum', function (require) {
'use strict';
var core = require('web.core');
-var wContext = require('website.context');
var Wysiwyg = require('web_editor.wysiwyg');
var sAnimations = require('website.content.snippets.animation');
var session = require('web.session');
@@ -138,7 +137,7 @@ sAnimations.registry.websiteForum = sAnimations.Class.extend({
toolbar: toolbar,
styleWithSpan: false,
recordInfo: {
- context: wContext.get(),
+ context: self._getContext(),
res_model: 'forum.post',
res_id: +window.location.pathname.split('-').pop(),
},