mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
leave application permissions patch - removed permlevel 2
This commit is contained in:
9
patches/february_2013/p05_leave_application.py
Normal file
9
patches/february_2013/p05_leave_application.py
Normal 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""")
|
||||
@@ -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",
|
||||
]
|
||||
Reference in New Issue
Block a user