Commit c256b32a authored by Yoshinori Okuji's avatar Yoshinori Okuji

reindexObject calls recursiveReindexObject instead of activating immediateRecursiveReindexObject.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3178 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 329fd847
...@@ -221,9 +221,7 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, Variated): ...@@ -221,9 +221,7 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, Variated):
""" """
Reindex children and simulation Reindex children and simulation
""" """
if self.isIndexable: self.recursiveReindexObject()
# Reindex children
self.activate().recursiveImmediateReindexObject()
security.declareProtected(Permissions.AccessContentsInformation, 'getInventoriatedQuantity') security.declareProtected(Permissions.AccessContentsInformation, 'getInventoriatedQuantity')
def getInventoriatedQuantity(self): def getInventoriatedQuantity(self):
......
...@@ -150,9 +150,7 @@ une liste de mouvements...""" ...@@ -150,9 +150,7 @@ une liste de mouvements..."""
""" """
Reindex children and simulation Reindex children and simulation
""" """
if self.isIndexable: self.recursiveReindexObject()
# Reindex children # NEW: we never rexpand simulation - This is a task for DSolver / TSolver
self.activate().recursiveImmediateReindexObject() # Make sure expanded simulation is still OK (expand and reindex)
# NEW: we never rexpand simulation - This is a task for DSolver / TSolver # self.activate().applyToDeliveryRelatedMovement(method_id = 'expand')
# Make sure expanded simulation is still OK (expand and reindex)
# self.activate().applyToDeliveryRelatedMovement(method_id = 'expand')
...@@ -94,12 +94,10 @@ class OrderLine(DeliveryLine): ...@@ -94,12 +94,10 @@ class OrderLine(DeliveryLine):
""" """
Reindex children and simulation Reindex children and simulation
""" """
if self.isIndexable: self.recursiveReindexObject()
# Reindex children #self.activate().applyToOrderLineRelatedMovement(method_id = 'expand')
self.activate().recursiveImmediateReindexObject() # We do it at Order level through edit
#self.activate().applyToOrderLineRelatedMovement(method_id = 'expand') # This logic should actually be put in worklow
# We do it at Order level through edit
# This logic should actually be put in worklow
# Simulation Consistency Check # Simulation Consistency Check
def getSimulationQuantity(self): def getSimulationQuantity(self):
......
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