Commit 7be64127 authored by Nicolas Delaby's avatar Nicolas Delaby

Faster Way (thks to romain and jerome)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22720 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b3da7975
......@@ -298,13 +298,11 @@ class TrackingListBrain(InventoryListBrain):
# the brain is accessed from the Shared.DC.ZRDB.Results.Results instance
obj = self.getObject()
if obj is not None:
movement_list = obj.getAggregateRelatedValueList()
for movement in movement_list:
movement = obj.portal_catalog.getObject(self.delivery_uid)
date = movement.getStartDate() or movement.getStopDate()
if date is not None:
timezone = date.timezone()
self.date = self.date.toZone(timezone)
break
class DeliveryListBrain(InventoryListBrain):
"""
......
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