mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 09:05:00 +00:00
9 lines
327 B
Python
9 lines
327 B
Python
import webnotes
|
|
|
|
def execute():
|
|
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""") |