This article provides a fix for stock status being incorrect after Magento Inventory install/upgrade.
Stock status incorrect on some sites
After first installing or upgrading to have Magento Inventory in the multi-website Magento environment, not all websites have the correct stock statuses for products.
Affected products and versions
- Magento Commerce Cloud all versions, with Magento Inventory installed
- Magento Commerce 2.3.0 and later, with Magento Inventory installed
- Magento Open Source 2.3.0 and later, with Magento Inventory installed
Cause
When you first install/upgrade, all of your products are assigned to the default source, associating all quantities to that source. The Default Source is assigned to the Default Stock, with the Default website associated.
Solution
If you have more than one website, you need to add these websites as Sales Channels to the Default Stock, or other custom stocks.
See the Stock section of the wiki/user guide for details on how to do this.