leave application permissions patch - removed permlevel 2

This commit is contained in:
Anand Doshi
2013-02-18 17:09:11 +05:30
parent 89869cf635
commit 78352d1e71
3 changed files with 26 additions and 21 deletions

View File

@@ -0,0 +1,9 @@
import webnotes
def execute():
webnotes.reload_doc("hr", "doctype", "leave_application")
if not webnotes.get_doctype("Leave Application").get({"doctype": "DocField",
"parent": "Leave Application", "permlevel": 2}):
webnotes.conn.sql("""update `tabDocPerm` set permlevel=1
where parent="Leave Application" and permlevel=2""")

View File

@@ -173,4 +173,5 @@ patch_list = [
"patches.february_2013.p01_event",
"execute:webnotes.delete_doc('Page', 'Calendar')",
"patches.february_2013.p02_email_digest",
"patches.february_2013.p05_leave_application",
]