hot:module fix for desktop

This commit is contained in:
Rushabh Mehta 2012-11-15 16:35:39 +05:30
parent 2a44bf8245
commit f281a0cf2f

View File

@ -60,7 +60,8 @@ erpnext.desktop.render = function() {
// setup
for(var i in wn.boot.modules_list) {
var m = wn.boot.modules_list[i];
if(!in_list(['Setup'], m) && wn.boot.profile.allow_modules.indexOf(m)!=-1)
if(!in_list(['Setup'], m) && wn.boot.profile.allow_modules.indexOf(m)!=-1
&& erpnext.modules[m])
add_icon(m);
}