update in patches
This commit is contained in:
parent
552093c3fd
commit
8acf46c725
10
erpnext/patches/jan_mar_2012/add_roles_to_admin.py
Normal file
10
erpnext/patches/jan_mar_2012/add_roles_to_admin.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
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'))
|
@ -40,3 +40,8 @@ def execute():
|
|||||||
|
|
||||||
delete_doc('DocType', 'Update Delivery Date Detail')
|
delete_doc('DocType', 'Update Delivery Date Detail')
|
||||||
|
|
||||||
|
# Reload print formats
|
||||||
|
reload_doc('accounts', 'Print Format', 'Sales Invoice Classic')
|
||||||
|
reload_doc('accounts', 'Print Format', 'Sales Invoice Modern')
|
||||||
|
reload_doc('accounts', 'Print Format', 'Sales Invoice Spartan')
|
||||||
|
|
||||||
|
@ -157,4 +157,14 @@ patch_list = [
|
|||||||
'patch_file': 'navupdate',
|
'patch_file': 'navupdate',
|
||||||
'description': 'New Navigation Pages'
|
'description': 'New Navigation Pages'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'patch_module': 'patches.jan_mar_2012',
|
||||||
|
'patch_file': 'label_cleanup',
|
||||||
|
'description': 'Remove extra fields and new dynamic labels'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'patch_module': 'patches.jan_mar_2012',
|
||||||
|
'patch_file': 'add_roles_to_admin',
|
||||||
|
'description': 'Add Roles to Administrator'
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user