Fixed HR patch
diff --git a/erpnext/patches/v4_0/fix_case_of_hr_module_def.py b/erpnext/patches/v4_0/fix_case_of_hr_module_def.py
index f7120b8..117c2ac 100644
--- a/erpnext/patches/v4_0/fix_case_of_hr_module_def.py
+++ b/erpnext/patches/v4_0/fix_case_of_hr_module_def.py
@@ -8,3 +8,5 @@
 	if hr == "Hr":
 		frappe.rename_doc("Module Def", "Hr", "HR")
 		frappe.db.set_value("Module Def", "HR", "module_name", "HR")
+
+	frappe.clear_cache()