[Erp5-report] r14650 - /erp5/trunk/products/ERP5Banking/Document/CashInventory.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed May 30 12:28:00 CEST 2007


Author: seb
Date: Wed May 30 12:28:00 2007
New Revision: 14650

URL: http://svn.erp5.org?rev=14650&view=rev
Log:
we wust redefine immediateReindexObject instead of alternateReindexObject, like this immediateReindexObject and alternateReindexObject are working

Modified:
    erp5/trunk/products/ERP5Banking/Document/CashInventory.py

Modified: erp5/trunk/products/ERP5Banking/Document/CashInventory.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/Document/CashInventory.py?rev=14650&r1=14649&r2=14650&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/Document/CashInventory.py (original)
+++ erp5/trunk/products/ERP5Banking/Document/CashInventory.py Wed May 30 12:28:00 2007
@@ -60,15 +60,13 @@
                       , PropertySheet.FlowCapacity
                       )
 
-    security.declarePublic('alternateReindexObject')
-    def alternateReindexObject(self, **kw):
-      """This method is called when an inventory object is included in a
-      group of catalogged objects.
-
-      Here we use TempCashDeliveryLine class so that methods specific to
-      banking application will work, like getBaobabVariationText
+    security.declarePublic('immediateReindexObject')
+    def immediateReindexObject(self, **kw):
+      """Call the Cash Inventory immediateReindexObject by 
+      setting another kind of temp delivery line.
       """
       from Products.ERP5Type.Document import newTempCashDeliveryLine
       temp_constructor = newTempCashDeliveryLine
-      return self.immediateReindexObject(temp_constructor=temp_constructor,**kw)
+      return Inventory.immediateReindexObject(self,
+                           temp_constructor=temp_constructor,**kw)
 




More information about the Erp5-report mailing list