hello, i am trying to restrict sales order confirmation by checking if the specified quantity within the order lines is available in the inventory.
for example if someone using the sales module wants to create a quotation and selects a product and sets quantity to 1,000 but there are only 900 units in the inventory i want it to reject this sales order or maybe even trigger an error.
thanks
p.s. im using odoo 15