Commit bb69cdd5 authored by Sebastien Robin's avatar Sebastien Robin

we wust redefine immediateReindexObject instead of alternateReindexObject,...

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
parent 913c9e6b
......@@ -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)
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