From 9d82f66c9c19d600168eab4a9c207f62e4e821d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Tue, 3 Apr 2007 14:02:49 +0000 Subject: [PATCH] make use of multiple base category in domains works git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13898 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Form/ListBox.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py index 026d05f7f0..c66de63da4 100644 --- a/product/ERP5Form/ListBox.py +++ b/product/ERP5Form/ListBox.py @@ -1233,9 +1233,14 @@ class ListBoxRenderer: base_category = base_category, is_open = False, selection_domain = selection_domain, exception_uid_list = exception_uid_list)) + # manage multiple base category + if len(report_path) >= 1 and base_category != report_path[0]: + new_base_category = None + else: + new_base_category = base_category tree_list.extend(self.makeReportTreeList(root_dict = new_root_dict, report_path = report_path, - base_category = base_category, + base_category = new_base_category, depth = depth + 1, unfolded_list = unfolded_list, is_report_opened = is_report_opened, -- 2.30.9