brotherton-erpnext/patches/september_2012/profile_delete_permission.py
2012-10-01 11:30:00 +05:30

4 lines
178 B
Python

import webnotes
def execute():
webnotes.conn.sql("""update `tabDocPerm` set cancel=1
where parent='Profile' and role in ('System Manager', 'Administrator') and permlevel=0""")