Commit c926c316 authored by Sebastien Robin's avatar Sebastien Robin

the section_depth was always equal to 0 with the parent report t

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8413 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d2d89d41
...@@ -1466,7 +1466,8 @@ class ListBoxRenderer: ...@@ -1466,7 +1466,8 @@ class ListBoxRenderer:
report_section_list.append(ReportSection(is_summary = False, object_list = object_list, report_section_list.append(ReportSection(is_summary = False, object_list = object_list,
object_list_len = object_list_len, object_list_len = object_list_len,
is_open = report_tree.is_open, is_open = report_tree.is_open,
domain_selection = report_tree.domain_selection)) domain_selection = report_tree.domain_selection,
depth = report_tree.depth))
else: else:
stat_context = report_tree.obj.asContext() stat_context = report_tree.obj.asContext()
#absolute_url_txt = s[0].absolute_url() #absolute_url_txt = s[0].absolute_url()
...@@ -1480,13 +1481,15 @@ class ListBoxRenderer: ...@@ -1480,13 +1481,15 @@ class ListBoxRenderer:
object_list_len = 1, object_list_len = 1,
is_open = True, is_open = True,
domain_selection = report_tree.domain_selection, domain_selection = report_tree.domain_selection,
context = stat_context)) context = stat_context,
depth = report_tree.depth))
report_section_list.append(ReportSection(is_summary = False, report_section_list.append(ReportSection(is_summary = False,
object_list = object_list, object_list = object_list,
object_list_len = object_list_len - 1, object_list_len = object_list_len - 1,
is_open = True, is_open = True,
domain_selection = report_tree.domain_selection, domain_selection = report_tree.domain_selection,
offset = 1)) offset = 1,
depth = report_tree.depth))
else: else:
if report_tree.exception_uid_list is not None: if report_tree.exception_uid_list is not None:
# Display current parent domain. # Display current parent domain.
...@@ -1495,7 +1498,8 @@ class ListBoxRenderer: ...@@ -1495,7 +1498,8 @@ class ListBoxRenderer:
object_list_len = 1, object_list_len = 1,
is_open = report_tree.is_open, is_open = report_tree.is_open,
domain_selection = report_tree.domain_selection, domain_selection = report_tree.domain_selection,
context = stat_context)) context = stat_context,
depth = report_tree.depth))
else: else:
# No data to display # No data to display
report_section_list.append(ReportSection(is_summary = False, report_section_list.append(ReportSection(is_summary = False,
...@@ -1503,7 +1507,8 @@ class ListBoxRenderer: ...@@ -1503,7 +1507,8 @@ class ListBoxRenderer:
object_list_len = 1, object_list_len = 1,
is_open = report_tree.is_open, is_open = report_tree.is_open,
domain_selection = report_tree.domain_selection, domain_selection = report_tree.domain_selection,
context = stat_context)) context = stat_context,
depth = report_tree.depth))
# Reset the report parameter. # Reset the report parameter.
selection.edit(report = None) selection.edit(report = None)
...@@ -2622,6 +2627,7 @@ class ListBoxListRenderer(ListBoxRenderer): ...@@ -2622,6 +2627,7 @@ class ListBoxListRenderer(ListBoxRenderer):
for line in self.query(): for line in self.query():
listboxline = ListBoxLine() listboxline = ListBoxLine()
listboxline.markDataLine() listboxline.markDataLine()
listboxline.setSectionDepth(line.getDepth())
if line.isSummary(): if line.isSummary():
listboxline.markSummaryLine() listboxline.markSummaryLine()
......
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