diff --git a/product/ERP5/Document/SimulationMovement.py b/product/ERP5/Document/SimulationMovement.py index 52e7ab2a6821085eec105ef1eb3c0aee021b145b..304b30862deff7c96a434886d5c7d5b411414280 100644 --- a/product/ERP5/Document/SimulationMovement.py +++ b/product/ERP5/Document/SimulationMovement.py @@ -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')