From e82e4d1a7344808bbff9a566fda76a6d71f4496a Mon Sep 17 00:00:00 2001 From: Sagar Vora Date: Fri, 28 Oct 2022 16:35:20 +0530 Subject: [PATCH] fix: use property instead of hardcoding --- .../core/doctype/document_naming_rule/document_naming_rule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/core/doctype/document_naming_rule/document_naming_rule.py b/frappe/core/doctype/document_naming_rule/document_naming_rule.py index 3da2d0105a..598de98dbb 100644 --- a/frappe/core/doctype/document_naming_rule/document_naming_rule.py +++ b/frappe/core/doctype/document_naming_rule/document_naming_rule.py @@ -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()