mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 09:47:14 +00:00
feat: clear document cache on validate
This commit is contained in:
@@ -17,6 +17,7 @@ class ProductsSettings(Document):
|
||||
|
||||
self.validate_field_filters()
|
||||
self.validate_attribute_filters()
|
||||
frappe.clear_document_cache("Product Settings")
|
||||
|
||||
def validate_field_filters(self):
|
||||
if not (self.enable_field_filters and self.filter_fields): return
|
||||
|
||||
Reference in New Issue
Block a user