Skip to content
Snippets Groups Projects
Commit 1a264d7d authored by Arnold Moyaux's avatar Arnold Moyaux
Browse files

[FIX] stock: prevent the import of stock.move.line with reserved quantity


Use case: Create an import file for a picking with stock.move.line directly in
it and add some reserved quantity on the stock.move.line.

The import of stock.move.line is not possible directly via a
stock.move.line menu but it still possible on a picking or
mrp.production import. However the create does not expect that
and never reserve the quants. So it result with quant <-> sml
inconcistencies in the data and the error can not reserve more
than you have in stock.

opw-3277938

closes odoo/odoo#119201

Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
parent 9ae7a7d1
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment