summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js
diff options
context:
space:
mode:
authorArnold Moyaux <arm@odoo.com>2018-12-18 16:10:55 +0000
committerArnold Moyaux <arm@odoo.com>2019-02-14 10:19:21 +0000
commita2a6b099a4c1c99f4aa9e741442944e588a8f048 (patch)
tree0f7fbeda672dd1ecf4f3cffee9b374c4faf69a06 /addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js
parent973e1b8d42f9317760b754626101a9b77c14814c (diff)
[REF] stock, stock_*: procurement batch by rules's actions
Improve the procurement requests performance. Instead of processing procurement request one by one, search rules that apply for each of them and group them by rule's actions. The main technical change is the record creation order. E.g. 2 SO lines with pick ship delivery. -Before this commit: line1 -> LAUNCH_RULE -> PICK MOVE1 -> MOVE1 CONFIRM -> OUT MOVE1 line2 -> LAUNCH RULE -> PICK MOVE2 -> MOVE2 CONFIRM -> OUT MOVE2 -After this commit: line1/2 -> LAUNCH RULE -> PICK MOVE1/2 -> MOVE1/2 CONFIRM -> OUT MOVE1/2 Also there is one batch creation by company_id. It implies that values are group by company_id. Since company_id are passed by previous procurement or by the rule, it become a required value and it's added to the procurement arguments (it was already always passed in the values, no functional modification). _run_buy is reworked. It receives a bathc of procurements, those procurements could be merged in the same PO or the same PO lines. However the PO/PO lines are created (if procurement couldn't be merged in an existing one) at the end of the method. It implies that 2 procurements creating a PO and merged inside, would now create 2 distinct PO (same for po lines). _run_buy in order to fix this issue: - group procurements by PO search domain. If the PO doesn't exist, create only one. - Inside the same PO: merge quantities, move_dest_ids for procurements with the same product and UoM. Other _run_ methods are just adjusted in order to process batch. For a pick pack ship scenario, without procurment_jit confirm a SO containing 500 lines will take 40s instead of 15 minutes.
Diffstat (limited to 'addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js')
0 files changed, 0 insertions, 0 deletions