brotherton-erpnext/patches/october_2012/custom_script_delete_permission.py

9 lines
240 B
Python
Raw Normal View History

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