[fix] fix patch to clear lead customization
diff --git a/erpnext/patches/v7_1/update_lead_source.py b/erpnext/patches/v7_1/update_lead_source.py
index 3edffd0..c7815c1 100644
--- a/erpnext/patches/v7_1/update_lead_source.py
+++ b/erpnext/patches/v7_1/update_lead_source.py
@@ -19,3 +19,7 @@
if s and s not in default_lead_sources:
frappe.get_doc(dict(doctype='Lead Source', source_name=s)).insert()
+ # remove customization for source
+ for p in frappe.get_all('Property Setter', {'doc_type':d, 'field_name':'source', 'property':'options'}):
+ frappe.delete_doc('Property Setter', p.name)
+