[FIX] regression that made the qweb modules be loaded 2 times

bzr revid: nicolas.vanhoren@openerp.com-20130807095457-gdm1ixzk0rcev2sg
This commit is contained in:
niv-openerp 2013-08-07 11:54:57 +02:00
parent 8b963ce64f
commit 1f726f7826
1 changed files with 1 additions and 2 deletions

View File

@ -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]] = {};