diff options
| author | Pierre Masereel <pim@odoo.com> | 2017-07-26 12:16:12 +0200 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2017-07-26 16:42:00 +0200 |
| commit | 7a39ab50c51d2923202072aa101bf40e450fa39f (patch) | |
| tree | 73b361465bdac92858baff512ad8b82c37d99916 /odoo/sql_db.py | |
| parent | 50794f64afb1ca62073ac4d59eaf31e7f2429d07 (diff) | |
[FIX] stock: move line: decrease reserved quantity
When we decrease the reserved quantity, the argument 'strict' must be
set to 'True', else we might unreserve quants of another move line.
This behavior has been lost in rev: https://github.com/odoo/odoo/commit/9bb696e13abcbf95c9552fab60b1dfb997afaa59
We introduce a test to show where an issue happened without this
patch: have tracked and untracked quants for the same product in stock,
reserve them and edit the untracked move line in order to set a lot to
it. The first step will be to unreserve the move line without lot, and
if we do not pass a Strict kw, stock.quant's `_gather` will return
quants with lot and unreserve on them. Everything is now inconsistent
and lead to issues upon validation.
Diffstat (limited to 'odoo/sql_db.py')
0 files changed, 0 insertions, 0 deletions
