diff options
| author | Antony Lesuisse <al@openerp.com> | 2011-12-27 20:44:05 +0100 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2011-12-27 20:44:05 +0100 |
| commit | dd79eb534b9a58e2fc54435c9ebe43f30ba00baa (patch) | |
| tree | c7dbdbc614ceb7e6899f0fff045a9c545650a210 /addons/web/static/src/js/boot.js | |
| parent | cfc87346a489badd9b26c34f14f5be4a86f11da0 (diff) | |
[IMP] initial module loading improvements
bzr revid: al@openerp.com-20111227194405-rz3kxbib03orbpr8
Diffstat (limited to 'addons/web/static/src/js/boot.js')
| -rw-r--r-- | addons/web/static/src/js/boot.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/web/static/src/js/boot.js b/addons/web/static/src/js/boot.js index c2aea24276b..282435f2a71 100644 --- a/addons/web/static/src/js/boot.js +++ b/addons/web/static/src/js/boot.js @@ -22,20 +22,20 @@ * @param {Array} modules list of modules to initialize */ init: function(modules) { + // By default only web will be loaded, the rest will be by loaded + // by openerp.web.Connection on the first session_authenticate + modules = modules || ["web"]; var new_instance = { // links to the global openerp _openerp: openerp, - // Only web will be loaded, the rest will be by loaded by - // openerp.web.Connection on the first connection - _modules_loaded: false, // this unique id will be replaced by hostname_databasename by // openerp.web.Connection on the first connection _session_id: "session" + session_counter++, + _modules: modules, web: {}, web_mobile: {} }; openerp.sessions[new_instance._session_id] = new_instance; - modules = modules || ["web"]; for(var i=0; i < modules.length; i++) { openerp[modules[i]](new_instance); } |
