From bb69cdd54e4bca449ea937248ac60d299058701f Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Wed, 30 May 2007 10:28:00 +0000
Subject: [PATCH] we wust redefine immediateReindexObject instead of
 alternateReindexObject, like this immediateReindexObject and
 alternateReindexObject are working

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14650 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Banking/Document/CashInventory.py | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/product/ERP5Banking/Document/CashInventory.py b/product/ERP5Banking/Document/CashInventory.py
index 3fed43596f..50b7717b7b 100644
--- a/product/ERP5Banking/Document/CashInventory.py
+++ b/product/ERP5Banking/Document/CashInventory.py
@@ -60,15 +60,13 @@ class CashInventory(Inventory, BankingOperation):
                       , 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)
 
-- 
2.30.9