2013-08-05 09:29:54 +00:00
|
|
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
|
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
2012-11-30 07:11:46 +00:00
|
|
|
import webnotes
|
|
|
|
|
|
|
|
def execute():
|
2013-03-06 06:00:09 +00:00
|
|
|
webnotes.reload_doc("core", "doctype", "doctype")
|
2012-11-30 07:11:46 +00:00
|
|
|
webnotes.clear_perms("Leave Application")
|
|
|
|
webnotes.reload_doc("hr", "doctype", "leave_application")
|
|
|
|
webnotes.conn.sql("""update `tabLeave Application` set status='Approved'
|
|
|
|
where docstatus=1""")
|
|
|
|
webnotes.conn.sql("""update `tabLeave Application` set status='Open'
|
|
|
|
where docstatus=0""")
|