diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-10-26 10:45:43 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-10-26 10:45:43 +0200 |
| commit | 04282ff00e8fa70c3eb0e9a48ba0cd32aa0e1cd7 (patch) | |
| tree | 4750c6e5f62d2f20924807ef33a334c55c5be0f0 /addons/web/static/src/js/boot.js | |
| parent | 99a2dd3938c7d7d4b7e9c724ec8acbb5eeedf35f (diff) | |
[IMP] port search test to new framework, add handling of web.{submodule} dependencies
bzr revid: xmo@openerp.com-20121026084543-fobkc3ta5q2jc3q6
Diffstat (limited to 'addons/web/static/src/js/boot.js')
| -rw-r--r-- | addons/web/static/src/js/boot.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/addons/web/static/src/js/boot.js b/addons/web/static/src/js/boot.js index 05ce709e80a..631a7f8c6f5 100644 --- a/addons/web/static/src/js/boot.js +++ b/addons/web/static/src/js/boot.js @@ -19,12 +19,14 @@ /** * OpenERP instance constructor * - * @param {Array} modules list of modules to initialize + * @param {Array|String} 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.Session on the first session_authenticate - modules = _.union(['web'], modules || []); + if (modules === "fuck your shit, don't load anything you cunt") { + modules = []; + } else { + modules = _.union(['web'], modules || []); + } var new_instance = { // links to the global openerp _openerp: openerp, |
