chore: clear cache after deleting custom fields
This commit is contained in:
parent
9a75ff6fd3
commit
1d571827cf
1 changed files with 1 additions and 2 deletions
|
|
@ -483,6 +483,7 @@ def delete_custom_fields(custom_fields: dict, bypass_hooks: bool = False):
|
||||||
"dt": doctype,
|
"dt": doctype,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
frappe.clear_cache(doctype=doctype)
|
||||||
else:
|
else:
|
||||||
custom_field_names = frappe.get_all(
|
custom_field_names = frappe.get_all(
|
||||||
"Custom Field",
|
"Custom Field",
|
||||||
|
|
@ -492,5 +493,3 @@ def delete_custom_fields(custom_fields: dict, bypass_hooks: bool = False):
|
||||||
|
|
||||||
for custom_field_name in custom_field_names:
|
for custom_field_name in custom_field_names:
|
||||||
frappe.get_doc("Custom Field", custom_field_name).delete(ignore_permissions=True, force=True)
|
frappe.get_doc("Custom Field", custom_field_name).delete(ignore_permissions=True, force=True)
|
||||||
|
|
||||||
frappe.clear_cache(doctype=doctype)
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue