reindex: Fix duplicate reindex in Supply and Delivery when more than >100 lines.
[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.
Showing
Please register or sign in to comment