Commit dd02c74d authored by Sebastien Robin's avatar Sebastien Robin

give the parameter depth to getChildDomainValueList

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7028 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 42b99338
......@@ -148,7 +148,7 @@ def makeTreeBody(form = None, root_dict = None, domain_path = '',
tree_body = ''
if root is None: return tree_body
if hasattr(root, 'getChildDomainValueList'):
oblist = root.getChildDomainValueList(root)
oblist = root.getChildDomainValueList(root,depth=depth)
else:
oblist = root.objectValues()
for o in oblist:
......@@ -251,7 +251,7 @@ def makeTreeList(here, form, root_dict, report_path, base_category, depth, unfol
tree_list += [(o, 1, depth, 0, selection_domain, ())] # Summary (closed)
else:
if hasattr(root, 'getChildDomainValueList'):
oblist = root.getChildDomainValueList(root)
oblist = root.getChildDomainValueList(root,depth=depth)
else:
oblist = root.objectValues()
for o in oblist:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment