From e5cd0bb06d187e4e62c13969099c94794668c21f Mon Sep 17 00:00:00 2001
From: Gabriel Monnerat <gabriel@tiolive.com>
Date: Wed, 27 Apr 2016 12:38:11 +0000
Subject: [PATCH] testXHTML: Accept non proxy field, because for some reason
 the developer probably have a good reason to not proxify it

---
 product/ERP5/tests/testXHTML.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5/tests/testXHTML.py b/product/ERP5/tests/testXHTML.py
index 4a64d8c618..9bb6d798aa 100644
--- a/product/ERP5/tests/testXHTML.py
+++ b/product/ERP5/tests/testXHTML.py
@@ -108,8 +108,8 @@ class TestXHTMLMixin(ERP5TypeTestCase):
       business_template = business_template.getObject()
       for modifiable_field in business_template.BusinessTemplate_getModifiableFieldList():
         # Do not consider 'Check delegated values' as an error
-        if modifiable_field.choice_item_list[0][1] != \
-                                              "0_check_delegated_value":
+        if modifiable_field.choice_item_list[0][1] not in \
+            ("0_check_delegated_value", "0_keep_non_proxy_field"):
           error_list.append((modifiable_field.object_id,
                             modifiable_field.choice_item_list[0][0]))
     if error_list:
-- 
2.30.9