magento / magento/inventory

Multi Source Inventory - Stocks sources of other website's showing on applying store switcher in admin

Open
#3,223 4 comments 0 reactions 1 assignee Claimed by @engcom-November View on GitHub
Progress: ready for grooming
Dominant language
PHP
Stars
357
Forks
262
PR merge metrics
No merged PRs in 30d

Description

### Preconditions (*)
1. Magento CE 2.3.4

### Steps to reproduce (*)
1. Create 2 websites - UAE(default) & Oman
2. Create 2 inventory sources one each for the above websites under Stores > Inventory > Sources
- UAE
- Oman
3. Create 2 inventory stocks under Stores > Inventory > Stocks and assign them to above websites (Sales Channel) and assign one source to each UAE and Oman respectively
- UAE (Stock) => UAE (Source) - UAE (Sales Channel)
- Oman (Stock) => Oman (Source) - Oman (Sales Channel)

![stock_5](https://user-images.githubusercontent.com/16201742/97260093-40dc0000-1842-11eb-861c-d9178a2634aa.png)

4. Go to any product under Catalog > Products and tag it to both the websites
5. Assign and Set qty per source (UAE & Oman)
6. Do reindexing
7. Now in Product Edit form in store switcher, switch store to Oman in the backend

![store_4](https://user-images.githubusercontent.com/16201742/97260217-81d41480-1842-11eb-9c3e-4a3bd8c2ab71.png)

8. Product shows both the sources (UAE & Oman)

![stock_6](https://user-images.githubusercontent.com/16201742/97260190-7385f880-1842-11eb-8bf6-3e0ec2d08d15.png)

### Expected result (*)
1. On switching to Oman store in product edit form, it should show only inventory source Oman. Since we had assigned Sales Channel Oman to the Oman stock in Step 2 above. This is creating confusion for our client.

### Actual result (*)

1. On switching to Oman store in product edit form, it is showing both the inventory sources UAE & Oman.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.