summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/utils.js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2019-10-25 12:55:37 +0000
committerfw-bot <otis@odoo.com>2019-10-25 14:40:53 +0000
commit118bff26dc69b12d088d94ed93aaeb7e137a65a3 (patch)
tree3be6e1599aee5c7043cc775db49eab9f782c4f83 /addons/website/static/src/js/utils.js
parentf09e7fbaa810d1c9f68193d0501e01556bfead74 (diff)
[FIX] website, *: restore website js loading
* web_editor Commit https://github.com/odoo/odoo/commit/7e2b0ebe7996c9fa35f75949b7fc8cd5a58d7c36 broke the website JS loading as it added a dependency to a lazy loaded JS module which was not even always lazy loaded. A test so that this does not happens anymore will be made in another commit. Related to task-2092386 closes odoo/odoo#39391 X-original-commit: 5ac269d722f9ff8c206215dd1c07b8544cfd5382 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/website/static/src/js/utils.js')
-rw-r--r--addons/website/static/src/js/utils.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/addons/website/static/src/js/utils.js b/addons/website/static/src/js/utils.js
index f852df03ad6..d8e69e3eba4 100644
--- a/addons/website/static/src/js/utils.js
+++ b/addons/website/static/src/js/utils.js
@@ -3,19 +3,9 @@ odoo.define('website.utils', function (require) {
var ajax = require('web.ajax');
var core = require('web.core');
-var weContext = require('web_editor.context');
var qweb = core.qweb;
-//TODO Remove me !
-var weGetContext = weContext.get;
-weContext.get = function (context) {
- var html = document.documentElement;
- return _.extend({
- website_id: html.getAttribute('data-website-id') | 0,
- }, weGetContext(context), context);
-};
-
/**
* Allows to load anchors from a page.
*