summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_reference.rst
diff options
context:
space:
mode:
authorArnold Moyaux <arm@odoo.com>2018-03-23 11:38:15 +0100
committerArnold Moyaux <arm@odoo.com>2018-09-18 14:53:03 +0200
commitc0d7a05730dca242ad60192b9905891e3afa9a90 (patch)
tree6af542a53a2ab9c8dea87a982733f1b20e3d4bd1 /doc/reference/javascript_reference.rst
parent6a81e671eab1c0f40507458e57522ec1a5ca2030 (diff)
[REF] stock: `_action_done` and cache invalidation
`_action_done` could unlink a quant. This happens when moving a product from a location to another one and makes null the quantity of this product in one of theses locations. In this case, we unlink the quant because it is now useless and could be confusing on reports based on quants. The unwanted side effect is that unlinking a record will invalidate the cache. In some pathologic cases, like making an inventory adjustment of 600 products and reseting their quantity back to 0, the time of the operation is around 15 minutes. With this patch that tries to work carefully with the cache invalidation, the same operations takes around 15 secondes. This commit do not unlink quant anymore, instead it use a 'garbage collector' on quants without quantity. The garbage collector is trigger on the scheduler and when the user open the inventory view.
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions