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): ...@@ -60,15 +60,13 @@ class CashInventory(Inventory, BankingOperation):
, PropertySheet.FlowCapacity , PropertySheet.FlowCapacity
) )
security.declarePublic('alternateReindexObject') security.declarePublic('immediateReindexObject')
def alternateReindexObject(self, **kw): def immediateReindexObject(self, **kw):
"""This method is called when an inventory object is included in a """Call the Cash Inventory immediateReindexObject by
group of catalogged objects. setting another kind of temp delivery line.
Here we use TempCashDeliveryLine class so that methods specific to
banking application will work, like getBaobabVariationText
""" """
from Products.ERP5Type.Document import newTempCashDeliveryLine from Products.ERP5Type.Document import newTempCashDeliveryLine
temp_constructor = 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