Kaynağa Gözat

fix: remove customizations which is not system_generated

version-14
shadrak gurupnor 3 yıl önce
ebeveyn
işleme
01978ffe73
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. +2
    -2
      frappe/custom/doctype/customize_form/customize_form.py

+ 2
- 2
frappe/custom/doctype/customize_form/customize_form.py Dosyayı Görüntüle

@@ -488,7 +488,7 @@ def reset_customization(doctype):
'doc_type': doctype,
'field_name': ['!=', 'naming_series'],
'property': ['!=', 'options'],
'owner': ['!=', 'Administrator']
'is_system_generated': False
}, pluck='name')

for setter in setters:
@@ -496,7 +496,7 @@ def reset_customization(doctype):

custom_fields = frappe.get_all("Custom Field", filters={
'dt': doctype,
'owner': ['!=', 'Administrator']
'is_system_generated': False
}, pluck='name')

for field in custom_fields:


Yükleniyor…
İptal
Kaydet