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): ...@@ -298,13 +298,11 @@ class TrackingListBrain(InventoryListBrain):
# the brain is accessed from the Shared.DC.ZRDB.Results.Results instance # the brain is accessed from the Shared.DC.ZRDB.Results.Results instance
obj = self.getObject() obj = self.getObject()
if obj is not None: if obj is not None:
movement_list = obj.getAggregateRelatedValueList() movement = obj.portal_catalog.getObject(self.delivery_uid)
for movement in movement_list: date = movement.getStartDate() or movement.getStopDate()
date = movement.getStartDate() or movement.getStopDate() if date is not None:
if date is not None: timezone = date.timezone()
timezone = date.timezone() self.date = self.date.toZone(timezone)
self.date = self.date.toZone(timezone)
break
class DeliveryListBrain(InventoryListBrain): 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