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: ignore lft and rgt when migrating a tree doctype
version-14
barredterra
4 years ago
parent
2374290935
commit
4a5f8dd23d
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
frappe/modules/import_file.py
+ 4
- 0
frappe/modules/import_file.py
View File
@@ -107,6 +107,10 @@ def import_doc(docdict, force=False, data_import=False, pre_process=None,
doc = frappe.get_doc(docdict)
if doc.meta.is_tree:
doc.lft = None
doc.rgt = None
doc.run_method("before_import")
doc.flags.ignore_version = ignore_version
Write
Preview
Loading…
Cancel
Save