Commit cf5ceae3 authored by Sebastien Robin's avatar Sebastien Robin

fixed a small error


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2950 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e8195b94
...@@ -108,7 +108,7 @@ class OrderLine(DeliveryLine): ...@@ -108,7 +108,7 @@ class OrderLine(DeliveryLine):
""" """
DeliveryLine.manage_afterAdd(self, item, container) DeliveryLine.manage_afterAdd(self, item, container)
# Make sure we have a workflow with the variable name 'simulation_state' # Make sure we have a workflow with the variable name 'simulation_state'
if getattr(self.getParent(),'getSimulationState'): if hasattr(self.getParent(),'getSimulationState'):
if self.getParent().getSimulationState() not in self.getPortalDraftOrderStateList(): if self.getParent().getSimulationState() not in self.getPortalDraftOrderStateList():
# Only reexpand order rule when we add lines # Only reexpand order rule when we add lines
self.aq_parent.activate()._createOrderRule() self.aq_parent.activate()._createOrderRule()
......
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