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):
"""
Reindex children and simulation
"""
if self.isIndexable:
# Reindex children
self.activate().recursiveImmediateReindexObject()
self.recursiveReindexObject()
security.declareProtected(Permissions.AccessContentsInformation, 'getInventoriatedQuantity')
def getInventoriatedQuantity(self):
......
......@@ -150,9 +150,7 @@ une liste de mouvements..."""
"""
Reindex children and simulation
"""
if self.isIndexable:
# Reindex children
self.activate().recursiveImmediateReindexObject()
# NEW: we never rexpand simulation - This is a task for DSolver / TSolver
# Make sure expanded simulation is still OK (expand and reindex)
# self.activate().applyToDeliveryRelatedMovement(method_id = 'expand')
self.recursiveReindexObject()
# NEW: we never rexpand simulation - This is a task for DSolver / TSolver
# Make sure expanded simulation is still OK (expand and reindex)
# self.activate().applyToDeliveryRelatedMovement(method_id = 'expand')
......@@ -94,12 +94,10 @@ class OrderLine(DeliveryLine):
"""
Reindex children and simulation
"""
if self.isIndexable:
# Reindex children
self.activate().recursiveImmediateReindexObject()
#self.activate().applyToOrderLineRelatedMovement(method_id = 'expand')
# We do it at Order level through edit
# This logic should actually be put in worklow
self.recursiveReindexObject()
#self.activate().applyToOrderLineRelatedMovement(method_id = 'expand')
# We do it at Order level through edit
# This logic should actually be put in worklow
# Simulation Consistency Check
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