Commit aaf4e4e0 authored by Sebastien Robin's avatar Sebastien Robin

we might have something else than delivery cell


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3775 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 678810d6
......@@ -203,7 +203,7 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, Variated):
emit targetUnreachable !
"""
if self.hasCellContent():
for cell in self.contentValues(filter={'portal_type': 'Delivery Cell'}):
for cell in self.contentValues(filter={'portal_type': self.getPortalDeliveryMovementTypeList()}):
if cell.isDivergent():
return 1
else:
......
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