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""")