chore(Document): remove code that resets self.latest (#19399)

This commit is contained in:
Sagar Vora 2022-12-23 18:43:28 +00:00 committed by GitHub
parent 6b0950e1d2
commit 1458429d98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1113,8 +1113,6 @@ class Document(BaseDocument):
if (self.doctype, self.name) in frappe.flags.currently_saving:
frappe.flags.currently_saving.remove((self.doctype, self.name))
self.latest = None
def clear_cache(self):
frappe.clear_document_cache(self.doctype, self.name)