Commit f7c3ffa1 authored by Sebastien Robin's avatar Sebastien Robin

do not assume that delivery cell always have the portal type Delivery Cell in...

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
parent a1fcd965
...@@ -218,7 +218,7 @@ class Delivery(XMLObject): ...@@ -218,7 +218,7 @@ class Delivery(XMLObject):
portal_type = 'Simulation Movement'): portal_type = 'Simulation Movement'):
# And apply # And apply
getattr(my_simulation_movement.getObject(), method_id)() 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( for my_simulation_movement in c.getDeliveryRelatedValueList(
portal_type = 'Simulation Movement'): portal_type = 'Simulation Movement'):
# And apply # And apply
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment