sync_handler_merge

This commit is contained in:
Anand Doshi
2012-03-23 14:46:07 +05:30
parent 9b56a8ada9
commit 2d4139cbeb
5 changed files with 8 additions and 2 deletions

View File

@@ -64,6 +64,10 @@ erpnext.startup.start = function() {
// always allow apps
wn.boot.profile.allow_modules = wn.boot.profile.allow_modules.concat(
['To Do', 'Knowledge Base', 'Calendar', 'Activity', 'Messages'])
// allow dashboard to accounts manager
if(user_roles.indexOf('Accounts Manager')!=-1) {
wn.boot.profile.allow_modules.push('Dashboard');
}
// setup toolbar
erpnext.toolbar.setup();