From 8aa841866fff0c546e34516f9c7ac04aa055bcfa Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 16 Feb 2012 15:56:36 +0530 Subject: [PATCH] add Website Manager Role to first user --- erpnext/setup/doctype/setup_control/setup_control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/setup/doctype/setup_control/setup_control.py b/erpnext/setup/doctype/setup_control/setup_control.py index 28558f09f6..22f4fbb716 100644 --- a/erpnext/setup/doctype/setup_control/setup_control.py +++ b/erpnext/setup/doctype/setup_control/setup_control.py @@ -179,7 +179,7 @@ class DocType: self.add_roles(pr) def add_roles(self, pr): - roles_list = ['System Manager','Sales Manager','Sales User','Purchase Manager','Purchase User','Material Manager','Material User','Accounts Manager','Accounts User','HR Manager','HR User','Production Manager','Production User','Sales Master Manager','Purchase Master Manager','Material Master Manager','Quality Manager','Maintenance User','Maintenance Manager'] + roles_list = ['System Manager','Sales Manager','Sales User','Purchase Manager','Purchase User','Material Manager','Material User','Accounts Manager','Accounts User','HR Manager','HR User','Production Manager','Production User','Sales Master Manager','Purchase Master Manager','Material Master Manager','Quality Manager','Maintenance User','Maintenance Manager','Website Manager'] for r in roles_list: d = addchild(pr, 'userroles', 'UserRole', 1) d.role = r