fix: use property instead of hardcoding

This commit is contained in:
Sagar Vora 2022-10-28 16:35:20 +05:30
parent 85f6f1e01d
commit e82e4d1a73

View file

@ -13,7 +13,7 @@ class DocumentNamingRule(Document):
self.validate_fields_in_conditions()
def clear_doctype_map(self):
frappe.cache_manager.clear_doctype_map("Document Naming Rule", self.document_type)
frappe.cache_manager.clear_doctype_map(self.doctype, self.document_type)
def on_update(self):
self.clear_doctype_map()