Commit b846d7a7 authored by Nicolas Delaby's avatar Nicolas Delaby

Avoid calling portal_catalog for each brain

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22725 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 669fae2d
......@@ -290,7 +290,7 @@ class TrackingListBrain(InventoryListBrain):
"""
List of aggregated movements
"""
def __init__(self):
def getDate(self):
if not self.date:
return
# convert the date in the movement's original timezone.
......@@ -302,7 +302,8 @@ class TrackingListBrain(InventoryListBrain):
date = movement.getStartDate() or movement.getStopDate()
if date is not None:
timezone = date.timezone()
self.date = self.date.toZone(timezone)
return self.date.toZone(timezone)
return self.date
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