From bfab46c536ad2c56c1d753a799212b757093dc75 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Thu, 18 Feb 2021 13:33:12 +0530 Subject: [PATCH] fix: ignore notify update in patch execution --- frappe/model/document.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frappe/model/document.py b/frappe/model/document.py index 1cd981ead8..3ecc335cdd 100644 --- a/frappe/model/document.py +++ b/frappe/model/document.py @@ -1015,6 +1015,8 @@ class Document(BaseDocument): def notify_update(self): """Publish realtime that the current document is modified""" + if frappe.flags.in_patch: return + frappe.publish_realtime("doc_update", {"modified": self.modified, "doctype": self.doctype, "name": self.name}, doctype=self.doctype, docname=self.name, after_commit=True)