summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2018-04-28 23:28:14 +0200
committerSimon Lejeune <sle@openerp.com>2018-04-30 11:05:33 +0200
commit518ed13602dc5a6781a764c961ab2e4500502585 (patch)
treea4a13362498c6515ed46ecc451d39c4b94cfe692 /addons/web/static/src/js/views/basic/basic_model.js
parent4322985a8aa7c5d007ebef4d227b5ef4c4d971fe (diff)
[FIX] stock: backorder
Do not try to keep the reservation when creating a backorder for two reasons: 1) it doesn't make sense since the backordered move will only be confirmed while it got some reserved move lines 2) with badly configured uom's rounding, it is possible that the initial demand of the backorder is inferior to the now reserved quantity We also fix another "cannot unreserve more than available" cause that could happen in the second case ; let's imagine in the second case that the backordered quantity is 0.999, `_update_reserved_qty` will reserve 0.999 on the quants but do not create a move line as range (0, 0.999) will not return anything. We remove `test_split_1` as it tested a behavior we removed and add a new test showing a new flow with what we fixed. Please note that setting the rounding of unit to 1.0 would have prevented all the issues here.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions