added delete permissions for custom script and added autoname method
This commit is contained in:
parent
b38e34d203
commit
c4bcbea927
9
patches/october_2012/custom_script_delete_permission.py
Normal file
9
patches/october_2012/custom_script_delete_permission.py
Normal file
@ -0,0 +1,9 @@
|
||||
import webnotes
|
||||
def execute():
|
||||
webnotes.conn.sql("""delete from `tabDocPerm` where parent='Custom Script'""")
|
||||
webnotes.conn.commit()
|
||||
|
||||
from webnotes.model.sync import sync
|
||||
sync("core", "custom_script", force=1)
|
||||
|
||||
webnotes.conn.begin()
|
@ -639,4 +639,8 @@ patch_list = [
|
||||
'patch_module': 'patches.october_2012',
|
||||
'patch_file': 'fix_cancelled_gl_entries',
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.october_2012',
|
||||
'patch_file': 'custom_script_delete_permission',
|
||||
}
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user