fix: do not pop doctype and docname

This commit is contained in:
Sagar Vora 2021-10-23 15:51:16 +05:30
parent a930e98ca3
commit b60f0772db

View file

@ -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: