fix: patch fixes (#16524)

This commit is contained in:
Saurabh 2019-01-30 17:45:48 +05:30 committed by Sagar Vora
parent 5fdcd91847
commit 429996752d

View File

@ -3,8 +3,10 @@ import frappe
def execute():
if 'Education' in frappe.get_active_domains() and not frappe.db.exists("Role", "Guardian"):
frappe.new_doc({
"doctype": "Role",
doc = frappe.new_doc("Role")
doc.update({
"role_name": "Guardian",
"desk_access": 0
}).insert(ignore_permissions=True)
})
doc.insert(ignore_permissions=True)