Selaa lähdekoodia

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

version-14
barredterra 4 vuotta sitten
vanhempi
commit
cb21e9de84
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      frappe/modules/import_file.py

+ 1
- 1
frappe/modules/import_file.py Näytä tiedosto

@@ -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



Ladataan…
Peruuta
Tallenna