From 28be35758740d4fcda084ac06ef499969eb5d5f5 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Mon, 1 Feb 2010 10:56:17 +0000 Subject: [PATCH] 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 --- product/ERP5/Document/SimulationMovement.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/product/ERP5/Document/SimulationMovement.py b/product/ERP5/Document/SimulationMovement.py index 80c03c3940..4a3a5fa08d 100644 --- a/product/ERP5/Document/SimulationMovement.py +++ b/product/ERP5/Document/SimulationMovement.py @@ -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 -- 2.30.9