• Tatuya Kamada's avatar
    reindex: Fix duplicate reindex in Supply and Delivery when more than >100 lines. · 671a83f6
    Tatuya Kamada authored
    [Before]:
    
    Where:
    
      in Supply or Delivery(Sale Order, Sale Packing List,..)
    
    When:
    
    ( document.edit(something=some_value)
    
      OR
    
      document.validate(), document.start() something when workflow transition  )
    
    AND
    
      document contains more than 100 sub objects, like 100 lines.
    
    Then:
      /some_module/document/1/recursiveImmediateReindexObject
      /some_module/document/1/reindexObject
      /some_module/document/1/1/recursiveImmediateReindexObject
      .
      .
      /some_module/document/1/100/recursiveImmediateReindexObject
    
    are triggered.
    
    The first big recursiveImmediateReindexObject recursively reindex all the sub
    objects. Thus the following reindex are duplicated.
    
    [After]:
    
    Reindex:
      /some_module/document/1/reindexObject
      /some_module/document/1/1/recursiveImmediateReindexObject
      .
      .
      /some_module/document/1/100/recursiveImmediateReindexObject
    
    The root recursiveImmediateReindexObject is removed.
    
    This has been the expected behavior from the beginning.
    Before was only a side effect by giving empty dict to "if activate_kw == None"
    expression.
    671a83f6
testSupply.py 27 KB