diff --git a/product/ERP5Type/Document/Folder.py b/product/ERP5Type/Document/Folder.py index 1950f536c5faf9becf6483fd5f45fd393dc1bbf6..61ecf2dd2132e642abbe1072af1169c82bdadee5 100755 --- a/product/ERP5Type/Document/Folder.py +++ b/product/ERP5Type/Document/Folder.py @@ -71,8 +71,6 @@ class FolderMixIn(ExtensionClass.Base): new_id = str(container.generateNewId(id_group = id_group, default=default, method=method)) else: new_id = str(id) - if not container.allowedContentTypes(): - raise 'NoAllowedContentTypesError' if portal_type is None: portal_type = container.allowedContentTypes()[0].id self.portal_types.constructContent(type_name=portal_type, container=container,