brotherton-erpnext/erpnext/patches/july_2012/remove_event_role_owner_match.py
2012-07-17 13:08:46 +05:30

5 lines
152 B
Python

def execute():
import webnotes
webnotes.conn.sql("""\
update `tabDocPerm` set `match`=NULL
where parent='Event' and role='All' and permlevel=0""")