瀏覽代碼

fix: 'Meta' object has no attribute 'is_tree'

version-14
barredterra 4 年之前
父節點
當前提交
cb21e9de84
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      frappe/modules/import_file.py

+ 1
- 1
frappe/modules/import_file.py 查看文件

@@ -107,7 +107,7 @@ def import_doc(docdict, force=False, data_import=False, pre_process=None,

doc = frappe.get_doc(docdict)

if doc.meta.is_tree:
if hasattr(doc.meta, 'is_tree') and getattr(doc.meta, 'is_tree'):
doc.lft = None
doc.rgt = None



Loading…
取消
儲存