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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user