cleaned up leave application

This commit is contained in:
Rushabh Mehta
2012-11-30 12:41:46 +05:30
parent 86adcaa113
commit 71d6a0ce1d
7 changed files with 301 additions and 355 deletions

View File

@@ -0,0 +1,9 @@
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""")

View File

@@ -693,4 +693,8 @@ patch_list = [
'patch_module': 'patches.november_2012',
'patch_file': 'add_employee_field_in_employee',
},
{
'patch_module': 'patches.november_2012',
'patch_file': 'leave_application_cleanup',
},
]