Commit 93e2b12a authored by Sebastien Robin's avatar Sebastien Robin

make sure to reindex the inventory when we reindex a line or cell


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5022 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b8a18bed
...@@ -268,3 +268,9 @@ class InventoryCell(DeliveryCell): ...@@ -268,3 +268,9 @@ class InventoryCell(DeliveryCell):
no inventory was defined. no inventory was defined.
""" """
return self.getInventory() # XXX quantity unit is missing return self.getInventory() # XXX quantity unit is missing
def reindexObject(self, *args, **kw):
"""
Make sure to reindex the inventory
"""
self.getParentValue().reindexObject()
...@@ -274,3 +274,10 @@ class InventoryLine(DeliveryLine): ...@@ -274,3 +274,10 @@ class InventoryLine(DeliveryLine):
Take into account efficiency in converted target quantity Take into account efficiency in converted target quantity
""" """
return Movement.getInventoriatedQuantity(self) return Movement.getInventoriatedQuantity(self)
def reindexObject(self, *args, **kw):
"""
Make sure to reindex the inventory
"""
self.getParentValue().recursiveReindexObject()
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