diff --git a/product/ERP5/Document/InventoryCell.py b/product/ERP5/Document/InventoryCell.py index ed715c55bc77c2b439ae073597095db652ec4560..adc669817df80ae372072a22cfe46afc5a00dd7f 100755 --- a/product/ERP5/Document/InventoryCell.py +++ b/product/ERP5/Document/InventoryCell.py @@ -268,3 +268,9 @@ class InventoryCell(DeliveryCell): no inventory was defined. """ return self.getInventory() # XXX quantity unit is missing + + def reindexObject(self, *args, **kw): + """ + Make sure to reindex the inventory + """ + self.getParentValue().reindexObject() diff --git a/product/ERP5/Document/InventoryLine.py b/product/ERP5/Document/InventoryLine.py index f56b1129279b8e3379c450e34bede2f18eba7f6b..eea07d6996ccf71821e560d7e3d3f3bd7d67eab6 100755 --- a/product/ERP5/Document/InventoryLine.py +++ b/product/ERP5/Document/InventoryLine.py @@ -274,3 +274,10 @@ class InventoryLine(DeliveryLine): Take into account efficiency in converted target quantity """ return Movement.getInventoriatedQuantity(self) + + def reindexObject(self, *args, **kw): + """ + Make sure to reindex the inventory + """ + self.getParentValue().recursiveReindexObject() +