[FIX] load modules when all css/qweb/js files are loaded

bzr revid: chs@openerp.com-20120112112138-gwxicn1zp5kkvsa9
This commit is contained in:
Christophe Simonis 2012-01-12 12:21:38 +01:00
parent 86c2821961
commit eb53f66c7c
1 changed files with 1 additions and 1 deletions

View File

@ -695,6 +695,7 @@ openerp.web.Connection = openerp.web.CallbackEnabled.extend( /** @lends openerp.
});
})
).then(function() {
self.on_modules_loaded();
self.on_session_valid();
});
});
@ -728,7 +729,6 @@ openerp.web.Connection = openerp.web.CallbackEnabled.extend( /** @lends openerp.
var head = document.head || document.getElementsByTagName('head')[0];
head.appendChild(tag);
} else {
self.on_modules_loaded();
d.resolve();
}
return d;