From 7b960c66bb6cfdcd835f127fff4161e72c324380 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Tue, 11 Dec 2018 16:48:06 +0000 Subject: [REF] website, web, *: move part of website into web * im_livechat, survey, website_forum When website is installed, the JavaScript code has access to utilities to define improved widgets which are automatically attached to existing DOM elements on page load. Those mechanics are more and more needed in portal which does not depend on website (as it is website which depends on portal). This commit moves part of website JS to web, so that it can be used by all 'frontend' apps whose only common dependency is web (portal, survey, auth_signup, ...). This PR also questioned several other similar issues which will be handled later like: - website should maybe not depends on portal but only on http_routing - part of portal should be moved to http_routing and http_routing should be renamed (especially for frontend layouts, etc) so that apps like survey can reuse some common code Part of https://github.com/odoo/odoo/pull/29442 task-1932066 --- addons/website/static/src/js/content/website_root_instance.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/website/static/src/js/content/website_root_instance.js') diff --git a/addons/website/static/src/js/content/website_root_instance.js b/addons/website/static/src/js/content/website_root_instance.js index d7d3f2f3f2a..48faa115bac 100644 --- a/addons/website/static/src/js/content/website_root_instance.js +++ b/addons/website/static/src/js/content/website_root_instance.js @@ -2,7 +2,7 @@ odoo.define('root.widget', function (require) { 'use strict'; require('web.dom_ready'); -var websiteRootData = require('website.WebsiteRoot'); +var websiteRootData = require('website.root'); var websiteRoot = new websiteRootData.WebsiteRoot(null); return websiteRoot.attachTo(document.body).then(function () { -- cgit v1.2.3