diff options
| author | Simon Lejeune <sle@openerp.com> | 2018-03-26 14:20:49 +0200 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2018-03-27 15:04:26 +0200 |
| commit | dc56bb5071c83f72938de7b57ef21a9dfd73fb1f (patch) | |
| tree | 5f70588c450b1261e1427bb78cc911f3453bf1ee /addons/web/static/src | |
| parent | 3a654ce256332d17266c1c83c747bc0cc2159350 (diff) | |
[FIX] stock: stock.move.line: `_free_reservation`
In a situation where `_action_done` is called on a batch of move line
when one of them is forced and there isn't enough quantity available
to reserve it, a call to `_free_reservation` is made in order to not
have move lines reserved on quantity now unavailable.
The issue is that the method looks for move line to unlink by making a
search on move line having a quantity reserved. As the `_action_done`
method defer the update of the reserved quantity at the end of the
batch, `_free_reservation` could try to find and unreserve move lines
that were juste processed, resulting in a traceback because there isn't
enough stock to unreserved (because the move line was processed and thus
moved at the next location).
We fix this issue by explicitely passing the move lines to ignore.
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions
