From dd02c74d925d2f3c583b431acb4a89f764577fda Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Tue, 2 May 2006 12:59:26 +0000
Subject: [PATCH] give the parameter depth to getChildDomainValueList

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7028 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Form/ListBox.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py
index 20674e70c2..6b7a7ffbfd 100644
--- a/product/ERP5Form/ListBox.py
+++ b/product/ERP5Form/ListBox.py
@@ -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:
-- 
2.30.9