Commit d5a4ac00 authored by Sebastien Robin's avatar Sebastien Robin

a TradeCondition should be a subclass of Path


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3110 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e586a1ce
...@@ -32,8 +32,9 @@ from Products.CMFCore.WorkflowCore import WorkflowMethod ...@@ -32,8 +32,9 @@ from Products.CMFCore.WorkflowCore import WorkflowMethod
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5Type.XMLObject import XMLObject from Products.ERP5Type.XMLObject import XMLObject
from Products.ERP5.Document.Path import Path
class Supply(XMLObject): class Supply(Path,XMLObject):
# CMF Type Definition # CMF Type Definition
meta_type = 'ERP5 Supply' meta_type = 'ERP5 Supply'
portal_type = 'Supply' portal_type = 'Supply'
...@@ -57,57 +58,4 @@ class Supply(XMLObject): ...@@ -57,57 +58,4 @@ class Supply(XMLObject):
, PropertySheet.FlowCapacity , PropertySheet.FlowCapacity
) )
# CMF Factory Type Information
factory_type_information = \
{ 'id' : portal_type
, 'meta_type' : meta_type
, 'description' : """\
une liste de mouvements..."""
, 'icon' : 'supply_icon.gif'
, 'product' : 'ERP5'
, 'factory' : 'addSupply'
, 'immediate_view' : 'supply_view'
, 'allow_discussion' : 1
, 'allowed_content_types': ('Movement',
)
, 'filter_content_types' : 1
, 'global_allow' : 1
, 'actions' :
( { 'id' : 'view'
, 'name' : 'View'
, 'category' : 'object_view'
, 'action' : 'supply_view'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'list'
, 'name' : 'Object Contents'
, 'category' : 'object_action'
, 'action' : 'folder_contents'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'print'
, 'name' : 'Print'
, 'category' : 'object_print'
, 'action' : 'supply_print'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'metadata'
, 'name' : 'Metadata'
, 'category' : 'object_view'
, '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