fix: do not pop doctype and docname
This commit is contained in:
parent
a930e98ca3
commit
b60f0772db
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue