diff options
| author | Arnold Moyaux <arm@odoo.com> | 2018-10-18 11:26:58 +0000 |
|---|---|---|
| committer | Arnold Moyaux <arm@odoo.com> | 2018-10-18 13:49:57 +0000 |
| commit | 433666b2d98e7e161f9694716e63741acc1d02d1 (patch) | |
| tree | 9d1280f10211feb80a053c5edbc8562fd36a0f85 /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | e648f5fbe48d8728b7ffb93c8736cf13e1585d88 (diff) | |
[FIX] stock: free reservation over reserve
Usecase to reproduce:
- 6 units in stock
- reserve 3 units on a move
- reserve 3 units on another move
- validate a third move with 1 unit
It raise the error could not reserve more than you have in stock.
It happens because when free reservation stole reservation from
an exisiting move with too much quantity available, it continues the
loop instead of stopping.
This commit stop the loop once we have enough quantity taken.
opw-1895578
closes odoo/odoo#27935
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
