From 14d07ef570bef1c24d1b9c05f1a4b21b0f8a8a3d Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Tue, 1 Jun 2010 11:48:54 +0000
Subject: [PATCH] use state list for the portal type instead of portal's global
 state list. ERP5Type >= r35858 is required.

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

diff --git a/product/ERP5/Document/Delivery.py b/product/ERP5/Document/Delivery.py
index d35ff23f23..f005f05300 100644
--- a/product/ERP5/Document/Delivery.py
+++ b/product/ERP5/Document/Delivery.py
@@ -707,7 +707,7 @@ class Delivery(XMLObject, ImmobilisationDelivery, CompositionMixin):
 
       # only expand if we are not in a "too early" or "too late" state
       if (self.getSimulationState() in
-          self.getPortalDraftOrderStateList()):
+          self.getGroupedStateList('draft_order')):
         return
 
       portal_rules = getToolByName(self, 'portal_rules')
-- 
2.30.9