[fix] fix patch to clear lead customization
This commit is contained in:
parent
5bab04fead
commit
cf7a36ac26
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user