added patch for expense and leave
This commit is contained in:
parent
b4be22b3a4
commit
071dc7f164
15
patches/december_2012/expense_leave_reload.py
Normal file
15
patches/december_2012/expense_leave_reload.py
Normal file
@ -0,0 +1,15 @@
|
||||
import webnotes
|
||||
|
||||
def execute():
|
||||
webnotes.clear_perms("Leave Application")
|
||||
webnotes.reload_doc("hr", "doctype", "leave_application")
|
||||
|
||||
webnotes.clear_perms("Expense Claim")
|
||||
webnotes.reload_doc("hr", "doctype", "expense_claim")
|
||||
|
||||
webnotes.conn.sql("""update `tabExpense Claim` set approval_status='Approved'
|
||||
where approval_status='Approved '""")
|
||||
|
||||
webnotes.conn.commit()
|
||||
for t in ['__CacheItem', '__SessionCache', 'tabSupport Ticket Response']:
|
||||
webnotes.conn.sql("drop table if exists `%s`" % t)
|
Loading…
x
Reference in New Issue
Block a user