diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index 0c917a659ef26c1df316324e739de26e534eef27..c6fc70875a3c73349ae4c578365e83e08ffc951f 100755 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -39,6 +39,7 @@ from Products.ERP5Type.Utils import readLocalDocument, writeLocalDocument, impor from Products.ERP5Type.XMLObject import XMLObject import cStringIO from Products.ERP5Type.Cache import clearCache +from Products.ERP5.Tool.Category import addBaseCategory from zLOG import LOG @@ -187,10 +188,7 @@ class CategoryTemplateItem(ObjectTemplateItem): for category_id in self._light_archive.keys(): if category_id in category_tool.objectIds(): raise TemplateConflictError, 'the category %s already exists' % id - self.portal_types.constructContent(type_name='Category', - container=category_tool, - id=category_id, - ) # **kw) removed due to CMF bug + addBaseCategory(category_tool, category_id) category = category_tool[category_id] property_list = self._light_archive[category_id]['property_list'] for property,value in property_list.items():