diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py
index 01d36afff7c6e5975e7c4ed8d98b7fbd4d17e65e..d5f2f319a31c28215e14e31ccc3d801e020fafde 100644
--- a/product/ERP5/Document/BusinessTemplate.py
+++ b/product/ERP5/Document/BusinessTemplate.py
@@ -4203,7 +4203,7 @@ class LocalRolesTemplateItem(BaseTemplateItem):
       xml_data += '\n  </role>'
     xml_data += '\n </local_roles>'
     xml_data += '\n</local_roles_item>'
-    if isinstance(xml_data, unicode)
+    if isinstance(xml_data, unicode):
       xml_data = xml_data.encode('utf8')
     return xml_data