Relative Content

Tag Archive for javascriptodoopoint-of-salerestrictodoo-17

Restrict Out of Stock Products in POS Odoo 17

I have this code that restricts the sale of the products from POS if they are out of stock. But it works when i select the product and then click on payment button. When I click on payment button on POS Session it will display a message for out of stock products. I want to add another feature, I want this message to be displayed when I click on out of stock products. For example, if a product is out of stock, when I click on the product it should give me the warning message. Out of stock products cannot be selected. So instead of selecting the out of stock products and then displaying the message while payment, I want to display the message when the product is selected. Can anyone help me to make the code work for odoo 17. I am new to Odoo POS development. Please help me out, Thank you.