[FIX] regression that made the qweb modules be loaded 2 times
bzr revid: nicolas.vanhoren@openerp.com-20130807095457-gdm1ixzk0rcev2sg
This commit is contained in:
parent
8b963ce64f
commit
1f726f7826
|
@ -33,12 +33,11 @@
|
|||
if (modules === null) {
|
||||
modules = [];
|
||||
}
|
||||
modules = _.without(modules, "web");
|
||||
if (inited)
|
||||
throw new Error("OpenERP was already inited");
|
||||
inited = true;
|
||||
for(var i=0; i < modules.length; i++) {
|
||||
if (modules[i] === "web")
|
||||
continue;
|
||||
var fct = openerp[modules[i]];
|
||||
if (typeof(fct) === "function") {
|
||||
openerp[modules[i]] = {};
|
||||
|
|
Loading…
Reference in New Issue