Update frappe/modules/utils.py
Co-Authored-By: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
This commit is contained in:
parent
0d6b8072df
commit
46af75f2ea
1 changed files with 1 additions and 1 deletions
|
|
@ -242,7 +242,7 @@ def make_boilerplate(template, doc, opts=None):
|
|||
|
||||
base_class = 'Document'
|
||||
base_class_import = 'from frappe.model.document import Document'
|
||||
if hasattr(doc, "is_tree"):
|
||||
if doc.get('is_tree'):
|
||||
base_class = 'NestedSet'
|
||||
base_class_import = 'from frappe.utils.nestedset import NestedSet'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue