perf: lesser SQL queries and no validation

Co-authored-by: Sagar Vora <sagar@resilient.tech>
(cherry picked from commit 2a100abef1)
This commit is contained in:
Nabin Hait
2022-09-05 18:16:34 +05:30
committed by Mergify
parent 28b1d4e2a3
commit 7bb5f6eb23

View File

@@ -18,4 +18,4 @@ def execute():
if strip_html(cstr(d.notes)).strip():
doc = frappe.get_doc(doctype, d.name)
doc.append("notes", {"note": d.notes, "added_by": d.modified_by, "added_on": d.modified})
doc.save()
doc.update_child_table("notes")