added delete permissions for custom script and added autoname method

This commit is contained in:
Anand Doshi
2012-10-26 13:23:51 +05:30
parent b38e34d203
commit c4bcbea927
2 changed files with 13 additions and 0 deletions

View 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()