Skip to content
Snippets Groups Projects
Commit 49d5bd9c 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#124185

Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
parent 13f499f7
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment