This website works better with JavaScript.
Home
Explore
Help
Sign In
anoopmb
/
frappe
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
fix: 'Meta' object has no attribute 'is_tree'
version-14
barredterra
4 years ago
parent
4a5f8dd23d
commit
cb21e9de84
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
frappe/modules/import_file.py
+ 1
- 1
frappe/modules/import_file.py
View File
@@ -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
Write
Preview
Loading…
Cancel
Save