Custom Field: clear cache before validating fields
This commit is contained in:
parent
58d8f6568b
commit
6f2e299883
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue