From 30d34c431190510edcb8553d678c64f1bf40704b Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 7 Nov 2011 11:07:50 +0530 Subject: [PATCH] sal manager reload patch --- erpnext/patches/sal_man_patch.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erpnext/patches/sal_man_patch.py b/erpnext/patches/sal_man_patch.py index 1154f987ff..aef625154b 100644 --- a/erpnext/patches/sal_man_patch.py +++ b/erpnext/patches/sal_man_patch.py @@ -2,4 +2,7 @@ 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'")