mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-20 15:25:13 +00:00
fix in module addition in toolbar
This commit is contained in:
@@ -65,7 +65,7 @@ erpnext.toolbar.add_modules = function() {
|
||||
for(var i in wn.boot.modules_list) {
|
||||
var m = wn.boot.modules_list[i]
|
||||
|
||||
if(m!='Setup' && wn.boot.profile.allow_modules.indexOf(m)!=-1) {
|
||||
if(m!='Setup' && wn.boot.profile.allow_modules.indexOf(m)!=-1 && wn.modules[m]) {
|
||||
args = {
|
||||
module: m,
|
||||
module_page: wn.modules[m].link,
|
||||
|
||||
Reference in New Issue
Block a user