浏览代码

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) 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.lft = None
doc.rgt = None doc.rgt = None




正在加载...
取消
保存