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,9 +62,10 @@ class Order(Delivery):
)
def updateAppliedRule(self):
if self.getSimulationState() not in self.getPortalDraftOrderStateList():
# Nothing to do
self._createOrderRule()
if hasattr(self,'getSimulationState'):
if self.getSimulationState() not in self.getPortalDraftOrderStateList():
# Nothing to do
self._createOrderRule()
security.declareProtected(Permissions.AccessContentsInformation, \
'isAccountable')
......
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