Sfoglia il codice sorgente

fix: remove customizations which is not system_generated

version-14
shadrak gurupnor 3 anni fa
parent
commit
01978ffe73
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      frappe/custom/doctype/customize_form/customize_form.py

+ 2
- 2
frappe/custom/doctype/customize_form/customize_form.py Vedi File

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


Caricamento…
Annulla
Salva