Commit 4adbd048 authored by Sebastien Robin's avatar Sebastien Robin

do not assume that cells are Delivery Cell, it can be something else like Purchase Order Cell


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4049 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 43093de5
...@@ -87,7 +87,8 @@ class Order(Delivery): ...@@ -87,7 +87,8 @@ class Order(Delivery):
portal_type='Simulation Movement'): portal_type='Simulation Movement'):
# And apply # And apply
getattr(my_simulation_movement, method_id)() getattr(my_simulation_movement, 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.getOrderRelatedValueList( for my_simulation_movement in c.getOrderRelatedValueList(
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