diff --git a/frappe/core/doctype/custom_field/custom_field.py b/frappe/core/doctype/custom_field/custom_field.py index 0180b996cf..852786f914 100644 --- a/frappe/core/doctype/custom_field/custom_field.py +++ b/frappe/core/doctype/custom_field/custom_field.py @@ -33,10 +33,10 @@ class CustomField(Document): # validate field from frappe.core.doctype.doctype.doctype import validate_fields_for_doctype - validate_fields_for_doctype(self.dt) - frappe.clear_cache(doctype=self.dt) + validate_fields_for_doctype(self.dt) + # create property setter to emulate insert after self.create_property_setter()