summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework/data_model.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2016-06-27 11:21:29 +0200
committerNicolas Martinelli <nim@odoo.com>2016-06-27 12:19:08 +0200
commit3229629579cda57673fe99816deab0a6560b4f0e (patch)
treef5f2ae44c9c14d94957105f76c4b3841bf1f47f9 /addons/web/static/src/js/framework/data_model.js
parent5abcbf0eb2a8618106752e46f9e0db2d42580f49 (diff)
[FIX] stock: reserved quants in lots
Let's take the following case: - Enable lot tracking on a product - Costing Method is "Real Price", Inventory Valuation is "Perpetual" - Create a picking with 2 stock moves, each stock move is linked to the same product When the picking is validated, 4 account moves are created instead of 2. This occurs because the list of stock moves and the list of reserved quants is sent to the method `_move_quants_by_lot`, but there is no check to which stock move is related a given quant. For most cases, the issue doesn't show up since there isn't usually 2 stock moves with the same product in a given picking. There is at least one use case where this happens: selling a pack of two identical products. In this specific case, 2 stock moves of the same product are created, but one pack operation will merge the 2 stock moves. opw-680308
Diffstat (limited to 'addons/web/static/src/js/framework/data_model.js')
0 files changed, 0 insertions, 0 deletions