diff options
| author | qsm-odoo <qsm@odoo.com> | 2019-02-04 14:45:16 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-02-05 11:39:11 +0000 |
| commit | b6db6b878c5d329c19262d829e13726c3a3a1d25 (patch) | |
| tree | fd49fff13e186b91f88b287a99e114adaa8a406d /addons/website_forum/static/src/js | |
| parent | 99499589eafb9c05236eb47553c1d723573c1b70 (diff) | |
[REF] website, *: remove 'website.context' module
* website_forum, website_gengo, website_mail_channel, website_sale
Retrieving the global context is now the root's job, this will prevent
problems when trying to extend the values the context has.
See upcoming improvements with https://github.com/odoo/odoo/pull/29442
closes odoo/odoo#30816
Diffstat (limited to 'addons/website_forum/static/src/js')
| -rw-r--r-- | addons/website_forum/static/src/js/website_forum.js | 3 |
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(), }, |
