commit | 2a100abef19d4db9566b7b760b1c029e1609f3e1 | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Mon Sep 05 18:16:34 2022 +0530 |
committer | GitHub <noreply@github.com> | Mon Sep 05 18:16:34 2022 +0530 |
tree | ad12a09d0dc4683b7deb42e316125e8ea58600ef | |
parent | 3abd00f3bb2b26beaeeea7bee03775f7368ceb08 [diff] |
perf: lesser SQL queries and no validation Co-authored-by: Sagar Vora <sagar@resilient.tech>
diff --git a/erpnext/patches/v14_0/migrate_existing_lead_notes_as_per_the_new_format.py b/erpnext/patches/v14_0/migrate_existing_lead_notes_as_per_the_new_format.py index e97651e..6ba5a9f 100644 --- a/erpnext/patches/v14_0/migrate_existing_lead_notes_as_per_the_new_format.py +++ b/erpnext/patches/v14_0/migrate_existing_lead_notes_as_per_the_new_format.py
@@ -18,4 +18,4 @@ 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")