mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 18:04:46 +00:00
moved directory structure
This commit is contained in:
11
patches/jan_mar_2012/add_roles_to_admin.py
Normal file
11
patches/jan_mar_2012/add_roles_to_admin.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from __future__ import unicode_literals
|
||||
def execute():
|
||||
"""
|
||||
Adds various roles to Administrator. This patch is for making master db
|
||||
ready for on premise installation
|
||||
"""
|
||||
import webnotes
|
||||
from webnotes.model.code import get_obj
|
||||
from webnotes.model.doc import Document
|
||||
sc = get_obj('Setup Control', 'Setup Control')
|
||||
sc.add_roles(Document('Profile', 'Administrator'))
|
||||
Reference in New Issue
Block a user