From b60f0772dbd9bb3304b15fb98a4cd81698c97a47 Mon Sep 17 00:00:00 2001 From: Sagar Vora Date: Sat, 23 Oct 2021 15:51:16 +0530 Subject: [PATCH] fix: do not pop `doctype` and `docname` --- frappe/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/client.py b/frappe/client.py index 39f49e23fc..2b80a17feb 100644 --- a/frappe/client.py +++ b/frappe/client.py @@ -278,7 +278,7 @@ def bulk_update(docs): for doc in docs: doc.pop("flags", None) try: - existing_doc = frappe.get_doc(doc.pop("doctype"), doc.pop("docname")) + existing_doc = frappe.get_doc(doc["doctype"], doc["docname"]) existing_doc.update(doc) existing_doc.save() except Exception: