Commit 2c020767 authored by Romain Courteaud's avatar Romain Courteaud

Removed factory type information.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2801 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 70d418d6
......@@ -40,8 +40,6 @@ class Discount(XMLObject):
meta_type = 'ERP5 Discount'
portal_type = 'Discount'
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
# Declarative security
security = ClassSecurityInfo()
......@@ -55,46 +53,3 @@ class Discount(XMLObject):
, PropertySheet.SortIndex
, PropertySheet.Discount
)
# Factory Type Information
factory_type_information = \
{ 'id' : portal_type
, 'meta_type' : meta_type
, 'description' : """\
Discounts are used in orders, trade condition,..."""
, 'icon' : 'discount_icon.gif'
, 'product' : 'ERP5'
, 'factory' : 'addDiscount'
, 'immediate_view' : 'discount_edit'
, 'actions' :
( { 'id' : 'view'
, 'name' : 'View'
, 'category' : 'object_view'
, 'action' : 'discount_edit'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'print'
, 'name' : 'Print'
, 'category' : 'object_print'
, 'action' : 'discount_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, )
}
)
}
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