diff options
| author | sma (Tiny) <sma@tinyerp.com> | 2011-10-03 16:57:31 +0530 |
|---|---|---|
| committer | sma (Tiny) <sma@tinyerp.com> | 2011-10-03 16:57:31 +0530 |
| commit | 7e9e542418f791b024de401236eeb8e006be42d4 (patch) | |
| tree | 91e49927b0de50c8c690a2eb608b425a12b4ac7c /addons/web/static/src/js/boot.js | |
| parent | 3e11ca62990fde34e537e233e3b099d22f8c8373 (diff) | |
| parent | 2dae9519d7c3d0a4c2217b63939bb4eb1d83d39d (diff) | |
[MERGE]
bzr revid: sma@tinyerp.com-20110926105300-72fwa60uvvdf1qgg
bzr revid: sma@tinyerp.com-20111003112731-uobxur1ryqb5laxy
Diffstat (limited to 'addons/web/static/src/js/boot.js')
| -rw-r--r-- | addons/web/static/src/js/boot.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/addons/web/static/src/js/boot.js b/addons/web/static/src/js/boot.js index 38f8eaa1e7c..f951d160866 100644 --- a/addons/web/static/src/js/boot.js +++ b/addons/web/static/src/js/boot.js @@ -19,9 +19,9 @@ /** * OpenERP instance constructor * - * @param {Boolean} skip_init if true, skips the built-in initialization + * @param {Array} modules list of modules to initialize */ - init: function(skip_init) { + init: function(modules) { var new_instance = { // links to the global openerp _openerp: openerp, @@ -35,8 +35,9 @@ web_mobile: {} }; openerp.sessions[new_instance._session_id] = new_instance; - if (!skip_init){ - openerp.web(new_instance); + modules = modules || ["web"]; + for(var i=0; i < modules.length; i++) { + openerp[modules[i]](new_instance); } return new_instance; } |
