Commit 2cbd04d6 authored by Nicolas Delaby's avatar Nicolas Delaby

Get portal_catalog from portal itself to avoid acquisition lookups


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41228 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1531741a
...@@ -300,7 +300,8 @@ class TrackingListBrain(InventoryListBrain): ...@@ -300,7 +300,8 @@ 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 = obj.portal_catalog.getObject(self.delivery_uid) portal = obj.getPortalObject()
movement = portal.portal_catalog.getObject(self.delivery_uid)
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()
......
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