How to integrate a sales order with the company stock?

How to integrate a sales order with the company stock?

Using the lookup field for the product, I need to associate the requested quantity with the quantity in stock.
What is the best way?