From 52d6bd67e411e7b3c6a5bb57d2cd3528d651a23e Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Fri, 13 Oct 2023 15:34:03 +0530 Subject: [PATCH] fix: Always return document from doc.insert --- frappe/model/document.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/model/document.py b/frappe/model/document.py index bbf05a7fed..410d889e58 100644 --- a/frappe/model/document.py +++ b/frappe/model/document.py @@ -260,7 +260,7 @@ class Document(BaseDocument): :param set_child_names: Whether to set names for the child documents. """ if self.flags.in_print: - return + return self self.flags.notifications_executed = []