diff --git a/frappe/model/document.py b/frappe/model/document.py index e5d299e677..16e1d3421e 100644 --- a/frappe/model/document.py +++ b/frappe/model/document.py @@ -1320,7 +1320,8 @@ class Document(BaseDocument, DocRef): elif self._action == "update_after_submit": self.run_method("on_update_after_submit") - self.clear_cache() + if not (frappe.flags.in_import and self.is_new()): + self.clear_cache() if self.flags.get("notify_update", True): self.notify_update()