瀏覽代碼

fix: Skip field-method conflicts validation on new docs

(cherry picked from commit 926d13e69e)
version-14
Gavin D'souza 4 年之前
committed by mergify-bot
父節點
當前提交
1eb84ad5e5
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      frappe/core/doctype/doctype/doctype.py

+ 1
- 1
frappe/core/doctype/doctype/doctype.py 查看文件

@@ -70,7 +70,6 @@ class DocType(Document):
validate_series(self)
self.validate_document_type()
validate_fields(self)
self.validate_field_name_conflicts()

if not self.istable:
validate_permissions(self)
@@ -84,6 +83,7 @@ class DocType(Document):
if not self.is_new():
self.before_update = frappe.get_doc('DocType', self.name)
self.setup_fields_to_fetch()
self.validate_field_name_conflicts()

check_email_append_to(self)



Loading…
取消
儲存