Merge pull request #14556 from resilient-tech/fix-bulk-update
fix: do not pop `doctype` and `docname`
This commit is contained in:
commit
ceb7ec35e0
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