Commit 39d361da authored by Romain Courteaud's avatar Romain Courteaud

Remove manage_afterAdd.

Simulation expand must be implemented in InteractionWorflow


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3105 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1fbd2976
...@@ -101,18 +101,6 @@ class OrderLine(DeliveryLine): ...@@ -101,18 +101,6 @@ class OrderLine(DeliveryLine):
# We do it at Order level through edit # We do it at Order level through edit
# This logic should actually be put in worklow # This logic should actually be put in worklow
def manage_afterAdd(self, item, container):
"""
Add self to the catalog.
(Called when the object is created or moved.)
"""
DeliveryLine.manage_afterAdd(self, item, container)
# Make sure we have a workflow with the variable name 'simulation_state'
if hasattr(self.getParent(),'getSimulationState'):
if self.getParent().getSimulationState() not in self.getPortalDraftOrderStateList():
# Only reexpand order rule when we add lines
self.aq_parent.activate()._createOrderRule()
# Simulation Consistency Check # Simulation Consistency Check
def getSimulationQuantity(self): def getSimulationQuantity(self):
""" """
......
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