Commit 1028f8ae authored by Thomas Bernard's avatar Thomas Bernard

handle support of generation script to build PlanningBox reportTreeList

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8275 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f567a92c
......@@ -1282,7 +1282,12 @@ def makeTreeList(here, form, root_dict, report_path, base_category, depth, unfol
else:
tree_list += [TreeListLine(o, 1, depth, 0, selection_domain, ())] # Summary (closed)
else:
for o in root.objectValues():
# process to recover objects in case a generation script is used
if hasattr(root,'getChildDomainValueList'):
oblist = root.getChildDomainValueList(root,depth=depth)
else:
oblist = root.objectValues()
for o in oblist:
new_root_dict = root_dict.copy()
new_root_dict[None] = new_root_dict[base_category] = o
selection_domain = DomainSelection(domain_dict = new_root_dict)
......
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