brotherton-erpnext/patches/november_2012/reset_appraisal_permissions.py

5 lines
179 B
Python
Raw Normal View History

import webnotes
def execute():
2012-11-17 14:31:06 +05:30
webnotes.conn.sql("""delete from tabDocPerm where parent='Appraisal'""")
from webnotes.model.sync import sync
sync("hr", "appraisal", force=True)