Skip to content
Snippets Groups Projects
Commit a381b6fd authored by Mathieu Walravens's avatar Mathieu Walravens
Browse files

[FIX] stock: prevent merging quants during import


Before this commit:
When importing `stock.quant` with two lines with the same product and
different counted quantities, only the last line is taken.

After this commit:
Each line creates a `stock.quant`, even if a similar Quant exists.
The records will be merged at a later time by `_merge_quants`.

Steps to reproduce:
1. Create a storable product
2. Go to Inventory > Operations > Inventory Adjustments
3. Create a file with two lines with the same product,
    and different counted quantities
5. Favourites > Import Records & upload the file

OPW-3340017

closes odoo/odoo#126458

X-original-commit: 45f7368222ead5df600992c66f0da56b3a7e959a
Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
Signed-off-by: default avatarWalravens Mathieu (wama) <wama@odoo.com>
parent 1688e0ec
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