perf: lesser SQL queries and no validation
Co-authored-by: Sagar Vora <sagar@resilient.tech>
This commit is contained in:
parent
3abd00f3bb
commit
2a100abef1
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user