Commit 6a2a91c5 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

implement isDeletable().

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31428 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0b8adb2c
No related merge requests found
......@@ -351,6 +351,16 @@ class SimulationMovement(Movement, PropertyRecordableMixin):
getDeliverable = isDeliverable
security.declareProtected( Permissions.AccessContentsInformation,
'isDeletable')
def isDeletable(self):
if not self.isFrozen() and not self._isTreeDelivered():
return True
else:
return False
getDeliverable = isDeliverable
# Simulation Dates - acquire target dates
security.declareProtected( Permissions.AccessContentsInformation,
'getOrderStartDate')
......
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