From 1f726f78266ff6130f1ed701799ca969671a1dfc Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Wed, 7 Aug 2013 11:54:57 +0200 Subject: [PATCH] [FIX] regression that made the qweb modules be loaded 2 times bzr revid: nicolas.vanhoren@openerp.com-20130807095457-gdm1ixzk0rcev2sg --- addons/web/static/src/js/boot.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/web/static/src/js/boot.js b/addons/web/static/src/js/boot.js index 48b19f29971..cd58c3bb10a 100644 --- a/addons/web/static/src/js/boot.js +++ b/addons/web/static/src/js/boot.js @@ -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]] = {};