fix: ignore lft and rgt when migrating a tree doctype
This commit is contained in:
parent
2374290935
commit
4a5f8dd23d
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue