Commit aca5985a authored by Sebastien Robin's avatar Sebastien Robin

removed factory type information


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4004 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8b8b954d
...@@ -78,48 +78,6 @@ class Item(XMLObject, Amount): ...@@ -78,48 +78,6 @@ class Item(XMLObject, Amount):
, PropertySheet.Amortisation , PropertySheet.Amortisation
) )
# Factory Type Information
factory_type_information = \
{ 'id' : portal_type
, 'meta_type' : meta_type
, 'description' : """\
Items in ERP5 are intended to provide a way to track objects."""
, 'icon' : 'item_icon.gif'
, 'product' : 'ERP5'
, 'factory' : 'addItem'
, 'immediate_view' : 'item_edit'
, 'actions' :
( { 'id' : 'view'
, 'name' : 'View'
, 'category' : 'object_view'
, 'action' : 'item_edit'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'print'
, 'name' : 'Print'
, 'category' : 'object_print'
, 'action' : 'item_print'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'metadata'
, 'name' : 'Metadata'
, 'category' : 'object_edit'
, 'action' : 'metadata_edit'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'translate'
, 'name' : 'Translate'
, 'category' : 'object_action'
, 'action' : 'translation_template_view'
, 'permissions' : (
Permissions.TranslateContent, )
}
)
}
security.declareProtected(Permissions.ModifyPortalContent,'generateNewId') security.declareProtected(Permissions.ModifyPortalContent,'generateNewId')
def generateNewId(self, id_group='item_id_group', default=None, method=None): def generateNewId(self, id_group='item_id_group', default=None, method=None):
""" """
...@@ -127,8 +85,6 @@ Items in ERP5 are intended to provide a way to track objects.""" ...@@ -127,8 +85,6 @@ Items in ERP5 are intended to provide a way to track objects."""
""" """
return XMLObject.generateNewId(self, id_group=id_group, default=default, method=method) return XMLObject.generateNewId(self, id_group=id_group, default=default, method=method)
### Amortisation ### Amortisation
# _update_data and _get_data are used to implement a semi-cache system on # _update_data and _get_data are used to implement a semi-cache system on
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment