summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2019-04-17 08:58:52 +0000
committerSimon Lejeune <sle@openerp.com>2019-04-17 11:33:03 +0000
commitc8b91b0a1551766d6d1b0559a3a201a44c96167f (patch)
tree2f882d166b26f8110e1670a55f8506139b287ee3 /addons/web_editor/static/src
parentc2f15d3f1ab87516fc2b928a2136a74b34890a02 (diff)
[FIX] stock: cache invalidation in _action_assign
`reserved_availability` is a computed field of a move depending on its move lines. We access this field at each iteration of the loop over the moves to assign and then we create a new move line for it. This triggers an invalidation of this field, The next iteration will again access this field and prefetch it for all the next records. We read the field out of the loop and don't access it again to prevent these prefetch/invalidation issues. Confirmation of a PO of ~800 lines goes from 5 minutes to 1 minute. opw-1953398 closes odoo/odoo#32774 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Diffstat (limited to 'addons/web_editor/static/src')
0 files changed, 0 insertions, 0 deletions