fix: use property instead of hardcoding
This commit is contained in:
parent
85f6f1e01d
commit
e82e4d1a73
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue