[IMP] avoid static home crashing after server side was completely broken

bzr revid: xmo@openerp.com-20111006090331-x6euo8vsnzuqqf73
This commit is contained in:
Xavier Morel 2011-10-06 11:03:31 +02:00
parent 9380f9ae30
commit 03918aefa7
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ openerp.web_default_home = function (openerp) {
$.blockUI({message:'<img src="/web/static/src/img/throbber2.gif">'});
Modules.read_slice(['id'], {}, function (records) {
if (!(records.length === 1)) { return; }
if (!(records.length === 1)) { $.unblockUI(); return; }
Modules.call('state_update',
[_.pluck(records, 'id'), 'to install', ['uninstalled']],
function () {