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 f7120b8c2a..117c2acba9 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 @@ def execute(): if hr == "Hr": frappe.rename_doc("Module Def", "Hr", "HR") frappe.db.set_value("Module Def", "HR", "module_name", "HR") + + frappe.clear_cache()