diff options
| author | Christophe Simonis <chs@openerp.com> | 2011-09-20 17:43:58 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@openerp.com> | 2011-09-20 17:43:58 +0200 |
| commit | 01eff42ca26c312c75a1eee8d86a986a21c7d9a8 (patch) | |
| tree | b2a40f01a208f3b16bb01d0b4653bebed015e039 /addons/web/static/src/js/boot.js | |
| parent | 8cda63a6e862ab338419c85c380b6da7b74dddf8 (diff) | |
[ADD] key in manifest allowing auto loading of modules
bzr revid: chs@openerp.com-20110920154358-gpv2ahph6gbtlmiy
Diffstat (limited to 'addons/web/static/src/js/boot.js')
| -rw-r--r-- | addons/web/static/src/js/boot.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/addons/web/static/src/js/boot.js b/addons/web/static/src/js/boot.js index b9d5180b5c4..27dc4dcda5e 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,9 +35,9 @@ web_mobile: {} }; openerp.sessions[new_instance._session_id] = new_instance; - if (!skip_init){ - openerp.web(new_instance); - } + _.each(modules, function (element, index, list) { + openerp[element](new_instance); + }); return new_instance; } }; |
