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 09:01:06 +00:00
webnotes.conn.sql("""delete from tabDocPerm where parent='Appraisal'""")
from webnotes.model.sync import sync
sync("hr", "appraisal", force=True)