inventory
inventory copied to clipboard
Product data import causes default stock source to be added back into products
The default stock source is added back into products after a data import despite it being explicitly removed from products previously.
Should the default stock be being added back into products if the merchant has setup a custom stock / source?
Preconditions (*)
- Install Magento 2.4.3-p1 with sample data
- In the admin area setup a new inventory source
- In the admin area setup a new stock, attach the new stock source only and assign this stock to the default website
- In the admin area using the product grid, transfer all stock from default to your new custom stock
Steps to reproduce (*)
- In the admin area go to System -> Data Transfer (Heading) -> Import
- Choose the following options (leave all other options as default):
- Entity Type = Products
- Import Behavior = Add/Update
- Run the import with a file as follows:
sku,price
MH02-XS-Black,60
Expected result (*)
- Product with SKU MH02-XS-Black should be updated to show the new price of 60 USD
- Stock sources should remain unchanged, as we have not updated stock
Actual result (*)
- The default stock source has been added back into the product despite us not using it against any product in the catalog
Hi @kevinvarley. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
- Join Magento Community Engineering Slack and ask your questions in #github channel.