diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index a9ea979a80607fe8ac6740fc34d58be2e707d33c..ebadb3d8032d9dc9075b2a79271e3c63697b85a5 100644 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -2384,6 +2384,8 @@ class PortalTypeRolesTemplateItem(BaseTemplateItem): bta.addFolder(name=root_path) for key in self._objects.keys(): xml_data = self.generateXml(key) + if isinstance(xml_data, unicode): + xml_data = xml_data.encode('utf-8') name = key.split('/', 1)[1] bta.addObject(obj=xml_data, name=name, path=root_path)