brotherton-erpnext/erpnext/patches/sal_man_patch.py
2011-11-07 11:07:50 +05:30

9 lines
262 B
Python

def execute():
import webnotes
from webnotes.modules.module_manager import reload_doc
sql = webnotes.conn.sql
reload_doc('hr', 'doctype', 'salary_manager')
sql("delete from `tabDocField` where parent = 'Salary Manager' and fieldname = 'employment_type'")