brotherton-erpnext/erpnext/patches/before_jan_2012/sal_man_patch.py

9 lines
262 B
Python
Raw Normal View History

2011-11-07 05:21:29 +00:00
def execute():
import webnotes
from webnotes.modules.module_manager import reload_doc
2011-11-07 05:37:50 +00:00
sql = webnotes.conn.sql
2011-11-07 05:21:29 +00:00
reload_doc('hr', 'doctype', 'salary_manager')
2011-11-07 05:37:50 +00:00
sql("delete from `tabDocField` where parent = 'Salary Manager' and fieldname = 'employment_type'")