From 818ef85751dab135116189d15cdf1e1e1c4b17a3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Fri, 27 Nov 2009 14:09:31 +0000
Subject: [PATCH] Base_viewRelatedObjectListBase/listbox has a non existing
 target on puropose

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30887 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/tests/testXHTML.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/product/ERP5/tests/testXHTML.py b/product/ERP5/tests/testXHTML.py
index d1af4f2c17..edc4200b20 100644
--- a/product/ERP5/tests/testXHTML.py
+++ b/product/ERP5/tests/testXHTML.py
@@ -160,8 +160,12 @@ class TestXHTML(ERP5TypeTestCase):
                   obj_metatypes=['ProxyField'], search_sub=1):
           template_field = field.getTemplateField(cache=False)
           if template_field is None:
-            error_list.append((skin_name, field_path, field.get_value('form_id'),
-                               field.get_value('field_id')))
+            # Base_viewRelatedObjectListBase (used for proxy listbox ids on
+            # relation fields) is an exception, the proxy field has no target
+            # by default.
+            if field_path != 'Base_viewRelatedObjectListBase/listbox':
+              error_list.append((skin_name, field_path, field.get_value('form_id'),
+                                 field.get_value('field_id')))
 
     if error_list:
       message = '\nDead proxy field list\n'
-- 
2.30.9