mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-16 00:37:15 +00:00
fix: patch fixes (#16524)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user