if you haven't enough stock in your warehouse then either you purchase goods or ask your another warehouse to transfer goods to your warehouse.
This is working in Odoo by enabling option inter transfer (you can google, you can find lots of videos).
Second way if you already know you haven't enough stock then you can change warehouse from sales order.
Third way you are asking, when I select the product then I can get in the info like in which warehouse I have enough stock right? If yes then this need customisation which improve warning message and give info like in which warehouse how much stock available.