brotherton-erpnext/patches/november_2012/reset_appraisal_permissions.py
2012-11-17 14:31:06 +05:30

5 lines
179 B
Python

import webnotes
def execute():
webnotes.conn.sql("""delete from tabDocPerm where parent='Appraisal'""")
from webnotes.model.sync import sync
sync("hr", "appraisal", force=True)