Inactivate Store Central Warehouse under Store Central Org. (There is only one warehouse in this org so by inactivating it there is no warehouse in this org)
Do Change role
Select Store Central Org
Warehouse dropdown would be empty
Login and then go to Generate Shipment (Manual)
Here warehouse would be displayed as the previous logged org and warehouse as it didnt get updated as there is not warehouse in the current logged in org
Attached the patch as possible solution for this issue
Steps reproduce:
Login to GardenWorld client
Role: GardenWorld Admin
Org: HQ
Warehouse: HQ Warehouse
Goto Warehouse & Locator window
Inactivate Store Central Warehouse under Store Central Org. (There is only one warehouse in this org so by inactivating it there is no warehouse in this org)
Do Change role
Select Store Central Org
Warehouse dropdown would be empty
Login and then go to Generate Shipment (Manual)
Here warehouse would be displayed as the previous logged org and warehouse as it didnt get updated as there is not warehouse in the current logged in org
Attached the patch as possible solution for this issue