projects
/
odoo
/
odoo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[IMP] web_preload js part
[odoo/odoo.git]
/
addons
/
web
/
static
/
src
/
js
/
boot.js
diff --git
a/addons/web/static/src/js/boot.js
b/addons/web/static/src/js/boot.js
index
10c8de0
..
f41185b
100644
(file)
--- a/
addons/web/static/src/js/boot.js
+++ b/
addons/web/static/src/js/boot.js
@@
-19,9
+19,9
@@
/**
* OpenERP instance constructor
*
/**
* 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,
var new_instance = {
// links to the global openerp
_openerp: openerp,
@@
-35,8
+35,9
@@
web_mobile: {}
};
openerp.sessions[new_instance._session_id] = new_instance;
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;
}
}
return new_instance;
}