fix: patch fixes (#16524)

diff --git a/erpnext/patches/v11_1/setup_guardian_role.py b/erpnext/patches/v11_1/setup_guardian_role.py
index bb61f98..6ccfed9 100644
--- a/erpnext/patches/v11_1/setup_guardian_role.py
+++ b/erpnext/patches/v11_1/setup_guardian_role.py
@@ -3,8 +3,10 @@
 
 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)