diff --git a/product/ERP5/tests/testXHTML.py b/product/ERP5/tests/testXHTML.py
index 7302f4fa2cedb1c02dfb3fdf2a1d914d5897ec9f..4a13b720030692ea08e9c5c242a0ab96e4c058f8 100644
--- a/product/ERP5/tests/testXHTML.py
+++ b/product/ERP5/tests/testXHTML.py
@@ -194,11 +194,11 @@ class TestXHTML(ERP5TypeTestCase):
           list_method = field.get_value("list_method")
           if list_method:
             if isinstance(list_method, str):
-              method = getattr(self.portal, list_method)
+              method = getattr(self.portal, list_method, None)
             else:
               method = list_method
             if not callable(method):
-              error_list.append(form_path)
+              error_list.append((form_path, list_method))
     self.assertEquals(error_list, [])
 
   def test_moduleListMethod(self):