fix: patch fixes (#16524)
This commit is contained in:
parent
5fdcd91847
commit
429996752d
@ -3,8 +3,10 @@ import frappe
|
|||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
if 'Education' in frappe.get_active_domains() and not frappe.db.exists("Role", "Guardian"):
|
if 'Education' in frappe.get_active_domains() and not frappe.db.exists("Role", "Guardian"):
|
||||||
frappe.new_doc({
|
doc = frappe.new_doc("Role")
|
||||||
"doctype": "Role",
|
doc.update({
|
||||||
"role_name": "Guardian",
|
"role_name": "Guardian",
|
||||||
"desk_access": 0
|
"desk_access": 0
|
||||||
}).insert(ignore_permissions=True)
|
})
|
||||||
|
|
||||||
|
doc.insert(ignore_permissions=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user