Commit 28be3575 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

do not call rule's isDeliverable and isOrderable method that may not exist.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32126 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b5de93db
......@@ -309,18 +309,16 @@ class SimulationMovement(Movement, PropertyRecordableMixin):
security.declareProtected( Permissions.AccessContentsInformation,
'isOrderable')
def isOrderable(self):
applied_rule = self.getParentValue()
rule = applied_rule.getSpecialiseValue()
return rule is not None and rule.isOrderable(self)
# the value of this method is no longer used.
return True
getOrderable = isOrderable
security.declareProtected( Permissions.AccessContentsInformation,
'isDeliverable')
def isDeliverable(self):
applied_rule = self.getParentValue()
rule = applied_rule.getSpecialiseValue()
return rule is not None and rule.isDeliverable(self)
# the value of this method is no longer used.
return True
getDeliverable = isDeliverable
......
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