From cf5ceae308287785927dc5d366875cbb40cd26e9 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Tue, 26 Apr 2005 07:44:53 +0000
Subject: [PATCH] fixed a small error

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2950 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/OrderLine.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5/Document/OrderLine.py b/product/ERP5/Document/OrderLine.py
index 068e2755e7..109f726b6c 100755
--- a/product/ERP5/Document/OrderLine.py
+++ b/product/ERP5/Document/OrderLine.py
@@ -108,7 +108,7 @@ class OrderLine(DeliveryLine):
       """
       DeliveryLine.manage_afterAdd(self, item, container)
       # Make sure we have a workflow with the variable name 'simulation_state'
-      if getattr(self.getParent(),'getSimulationState'):
+      if hasattr(self.getParent(),'getSimulationState'):
         if self.getParent().getSimulationState() not in self.getPortalDraftOrderStateList():
           # Only reexpand order rule when we add lines
           self.aq_parent.activate()._createOrderRule()
-- 
2.30.9