diff --git a/product/ERP5/Document/Delivery.py b/product/ERP5/Document/Delivery.py index 4d50b838f3562e2a76a2435704466c716e0fe903..e44fbe635f24733d84ef671ae035f5473d4c0bcf 100755 --- a/product/ERP5/Document/Delivery.py +++ b/product/ERP5/Document/Delivery.py @@ -232,15 +232,6 @@ class Delivery(XMLObject): , PropertySheet.Reference ) - security.declareProtected(Permissions.AccessContentsInformation, 'getSimulationState') - def getSimulationState(self, id_only=1): - """ - Returns the current state in simulation - """ - portal_workflow = getToolByName(self, 'portal_workflow') - wf = portal_workflow.getWorkflowById('delivery_workflow') - return wf._getWorkflowStateOf(self, id_only=id_only ) - security.declareProtected(Permissions.ModifyPortalContent, 'expand') def expand(self, applied_rule_id,force=0,**kw): """ diff --git a/product/ERP5/Document/Inventory.py b/product/ERP5/Document/Inventory.py index 7df9214654cd18efae6aad3965a7eaf12a4c3cbd..3443208ccc4c9d9d13038366301add8066885a35 100755 --- a/product/ERP5/Document/Inventory.py +++ b/product/ERP5/Document/Inventory.py @@ -130,9 +130,6 @@ une liste de mouvements...""" Returns the current state in simulation """ return 'delivered' # For now, consider that Inventory has no workflow XXX - portal_workflow = getToolByName(self, 'portal_workflow') - wf = portal_workflow.getWorkflowById('delivery_workflow') - return wf._getWorkflowStateOf(self, id_only=id_only ) # This should be put in a mix in or at least Delivery should become base class for inventory security.declareProtected(Permissions.AccessContentsInformation, 'getDeliveryUid') diff --git a/product/ERP5/Document/Order.py b/product/ERP5/Document/Order.py index e58cc89095fa4e45aec56c2203d476c2f6c04f7c..b868fc97e490230e4ce717e4b9846feccec70399 100755 --- a/product/ERP5/Document/Order.py +++ b/product/ERP5/Document/Order.py @@ -72,15 +72,6 @@ class Order(Delivery): # Nothing to do self._createOrderRule() - security.declareProtected(Permissions.AccessContentsInformation, 'getSimulationState') - def getSimulationState(self, id_only=1): - """ - Returns the current state in simulation - """ - portal_workflow = getToolByName(self, 'portal_workflow') - wf = portal_workflow.getWorkflowById('order_workflow') - return wf._getWorkflowStateOf(self, id_only=id_only ) - security.declareProtected(Permissions.AccessContentsInformation, 'isAccountable') def isAccountable(self): """