[fix] fix patch to clear lead customization

This commit is contained in:
Rushabh Mehta 2016-09-16 23:01:41 +05:30
parent 5bab04fead
commit cf7a36ac26

View File

@ -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)