magento / inventory

Magento Inventory Project (a.k.a MSI)
Open Software License 3.0
337 stars 247 forks source link

Product data import causes default stock source to be added back into products #3341

Open kevinvarley opened 2 years ago

kevinvarley commented 2 years ago

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 (*)

  1. Install Magento 2.4.3-p1 with sample data
  2. In the admin area setup a new inventory source
  3. In the admin area setup a new stock, attach the new stock source only and assign this stock to the default website
  4. In the admin area using the product grid, transfer all stock from default to your new custom stock

Steps to reproduce (*)

  1. In the admin area go to System -> Data Transfer (Heading) -> Import
  2. Choose the following options (leave all other options as default):
  1. Run the import with a file as follows:
sku,price
MH02-XS-Black,60

Expected result (*)

  1. Product with SKU MH02-XS-Black should be updated to show the new price of 60 USD
  2. Stock sources should remain unchanged, as we have not updated stock

Actual result (*)

  1. The default stock source has been added back into the product despite us not using it against any product in the catalog
m2-assistant[bot] commented 2 years ago

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