Merge pull request #8480 from Mangesh-Khairnar/fix-boilerplate-creation
fix: boilerplate creation
This commit is contained in:
commit
36deebec10
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 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