[Erp5-report] r41228 nicolas - /erp5/trunk/products/ERP5/Extensions/InventoryBrain.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Dec 8 14:52:17 CET 2010


Author: nicolas
Date: Wed Dec  8 14:52:15 2010
New Revision: 41228

URL: http://svn.erp5.org?rev=41228&view=rev
Log:
Get portal_catalog from portal itself to avoid acquisition lookups

Modified:
    erp5/trunk/products/ERP5/Extensions/InventoryBrain.py

Modified: erp5/trunk/products/ERP5/Extensions/InventoryBrain.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Extensions/InventoryBrain.py?rev=41228&r1=41227&r2=41228&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Extensions/InventoryBrain.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Extensions/InventoryBrain.py [utf8] Wed Dec  8 14:52:15 2010
@@ -300,7 +300,8 @@ class TrackingListBrain(InventoryListBra
     # the brain is accessed from the Shared.DC.ZRDB.Results.Results instance
     obj = self.getObject()
     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()
       if date is not None:
         timezone = date.timezone()



More information about the Erp5-report mailing list