2012-07-19 08:10:31 +00:00
|
|
|
from __future__ import unicode_literals
|
2012-03-01 08:28:13 +00:00
|
|
|
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'))
|