diff --git a/erpnext/patches/v7_1/update_lead_source.py b/erpnext/patches/v7_1/update_lead_source.py index 3edffd0615..c7815c13dd 100644 --- a/erpnext/patches/v7_1/update_lead_source.py +++ b/erpnext/patches/v7_1/update_lead_source.py @@ -19,3 +19,7 @@ def execute(): 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) +