[Fix] Addresses linked back to Lead
diff --git a/erpnext/patches.txt b/erpnext/patches.txt
index 4aa1f37..cb8ba03 100644
--- a/erpnext/patches.txt
+++ b/erpnext/patches.txt
@@ -380,4 +380,5 @@
erpnext.patches.v7_2.move_dates_from_salary_structure_to_employee
erpnext.patches.v7_2.make_all_assessment_group
erpnext.patches.v8_0.manufacturer_childtable_migrate
-erpnext.patches.v8_0.repost_reserved_qty_for_multiple_sales_uom
\ No newline at end of file
+erpnext.patches.v8_0.repost_reserved_qty_for_multiple_sales_uom
+erpnext.patches.v8_0.addresses_linked_to_lead
\ No newline at end of file
diff --git a/erpnext/patches/v8_0/addresses_linked_to_lead.py b/erpnext/patches/v8_0/addresses_linked_to_lead.py
new file mode 100644
index 0000000..c485b5b
--- /dev/null
+++ b/erpnext/patches/v8_0/addresses_linked_to_lead.py
@@ -0,0 +1,4 @@
+import frappe
+
+def execute():
+ frappe.db.sql("""UPDATE `tabDynamic Link` SET link_doctype = 'Lead' WHERE link_doctype = 'Load'""")