Commit 56897232 authored by Sebastien Robin's avatar Sebastien Robin

check if we have the getSimulationState method


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3038 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6fdfd3d7
...@@ -62,6 +62,7 @@ class Order(Delivery): ...@@ -62,6 +62,7 @@ class Order(Delivery):
) )
def updateAppliedRule(self): def updateAppliedRule(self):
if hasattr(self,'getSimulationState'):
if self.getSimulationState() not in self.getPortalDraftOrderStateList(): if self.getSimulationState() not in self.getPortalDraftOrderStateList():
# Nothing to do # Nothing to do
self._createOrderRule() self._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