diff --git a/product/ERP5/Document/SimulationMovement.py b/product/ERP5/Document/SimulationMovement.py index d9aab201ee19d4cc59570ae773e0b3c08cd4fdd0..6268ae561742bd1b886f9fd74119e9a98a45aaca 100755 --- a/product/ERP5/Document/SimulationMovement.py +++ b/product/ERP5/Document/SimulationMovement.py @@ -414,3 +414,21 @@ a service in a public administration).""" its direct consequences. (ex. we do not calculate again a transformation) """ return 0 + + # Deliverability / orderability + security.declareProtected(Permissions.AccessContentsInformation, 'isOrderable') + def isOrderable(self): + applied_rule = self.aq_parent + rule = applied_rule.getSpecialiseValue() + if rule is not None: + return rule.isOrderable(m) + return 0 + + security.declareProtected(Permissions.AccessContentsInformation, 'isDeliverable') + def isDeliverable(self): + applied_rule = self.aq_parent + rule = applied_rule.getSpecialiseValue() + if rule is not None: + return rule.isDeliverable(m) + return 0 +