summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2017-10-01 14:40:50 +0200
committerSimon Lejeune <sle@openerp.com>2017-10-02 10:11:49 +0200
commit021a95d99827d1cb1d08d0b7c19ad56e8adc4c1a (patch)
tree4ed8f779991b131d2e4e93c33bba853fc5a13c4c /addons/web/static/src/js/views/basic/basic_controller.js
parentf6144fe1f36ad44affff785d0e9c2c32d37a8963 (diff)
[FIX] stock: move: _action_assign and _free_reservation
The code made the assumption that everything brought by in chained move is available on the quants. This is not always true, for example when x products are brought by a move in the chain, the user can make an inventory adjustment that reduce the quantity available. Thus, we implement a fallback in case the quantity brought by is not available: do not reserve more than what's really available. If the user make available some products with the same characteristics (lot/owner/pack) in the location, they will be used by a new call to _action_assign. Indeed, the reserved quants are not discernable. This is not an issue in reality, as the user cannot discern the products himself if they share the same characteristics.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions