From 79b8ca8f68190ab4185b860bf2d1c9f57b20571e Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 7 Feb 2013 10:55:48 +0530 Subject: [PATCH] fixes in patch --- patches/february_2013/update_company_in_leave_application.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/patches/february_2013/update_company_in_leave_application.py b/patches/february_2013/update_company_in_leave_application.py index 098c7e32b1f..eaf03b60839 100644 --- a/patches/february_2013/update_company_in_leave_application.py +++ b/patches/february_2013/update_company_in_leave_application.py @@ -1,5 +1,7 @@ def execute(): import webnotes + webnotes.reload_doc("hr", "doctype", "leave_application") + webnotes.conn.sql("""update `tabLeave Application`, `tabEmployee` set `tabLeave Application`.company = `tabEmployee`.company where `tabLeave Application`.employee = `tabEmployee`.name""")