The material has to be purchased when you confirm the sales unless you want to stock it to answer future demand/sales. According to Odoo, there are two approaches to procure the material, buy on demand or assign from stock, and manage the inventory level based on the minimum order rule.
Let's see the complete purchase flow starting from sales to procurement to procure an order of the material that was configured to be purchased on demand. As soon as the sales confirm the order for the material, a request for a quotation will be generated, the material will be received in the warehouse, the vendor bill will be received, the material will be assigned to the delivery order, and finally, it will be shipped.