|
@@ -488,7 +488,7 @@ def reset_customization(doctype): |
|
|
'doc_type': doctype, |
|
|
'doc_type': doctype, |
|
|
'field_name': ['!=', 'naming_series'], |
|
|
'field_name': ['!=', 'naming_series'], |
|
|
'property': ['!=', 'options'], |
|
|
'property': ['!=', 'options'], |
|
|
'owner': ['!=', 'Administrator'] |
|
|
|
|
|
|
|
|
'is_system_generated': False |
|
|
}, pluck='name') |
|
|
}, pluck='name') |
|
|
|
|
|
|
|
|
for setter in setters: |
|
|
for setter in setters: |
|
@@ -496,7 +496,7 @@ def reset_customization(doctype): |
|
|
|
|
|
|
|
|
custom_fields = frappe.get_all("Custom Field", filters={ |
|
|
custom_fields = frappe.get_all("Custom Field", filters={ |
|
|
'dt': doctype, |
|
|
'dt': doctype, |
|
|
'owner': ['!=', 'Administrator'] |
|
|
|
|
|
|
|
|
'is_system_generated': False |
|
|
}, pluck='name') |
|
|
}, pluck='name') |
|
|
|
|
|
|
|
|
for field in custom_fields: |
|
|
for field in custom_fields: |
|
|