From f7c3ffa17c2559b9b154309b1289dafe462638e6 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Thu, 20 Oct 2005 09:19:38 +0000 Subject: [PATCH] do not assume that delivery cell always have the portal type Delivery Cell in applyToDeliveryRelatedMovement git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4083 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 673bbf5e2e..84b818741a 100755 --- a/product/ERP5/Document/Delivery.py +++ b/product/ERP5/Document/Delivery.py @@ -218,7 +218,7 @@ class Delivery(XMLObject): portal_type = 'Simulation Movement'): # And apply getattr(my_simulation_movement.getObject(), method_id)() - for c in m.contentValues(filter={'portal_type': 'Delivery Cell'}): + for c in m.contentValues(filter={'portal_type': self.getPortalMovementTypeList()}): for my_simulation_movement in c.getDeliveryRelatedValueList( portal_type = 'Simulation Movement'): # And apply -- 2.30.9