commit | 79b8ca8f68190ab4185b860bf2d1c9f57b20571e | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Thu Feb 07 10:55:48 2013 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Thu Feb 07 10:55:48 2013 +0530 |
tree | d48239792ae59608a1044142ac6cd37d59532cd6 | |
parent | 9986ae8c6f1c683864133d6b98a258fc2e288bd7 [diff] |
fixes in patch
diff --git a/patches/february_2013/update_company_in_leave_application.py b/patches/february_2013/update_company_in_leave_application.py index 098c7e3..eaf03b6 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""")