Update frappe/modules/utils.py

Co-Authored-By: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
This commit is contained in:
Mangesh-Khairnar 2019-09-24 10:16:04 +05:30 committed by GitHub
parent 0d6b8072df
commit 46af75f2ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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