Skip to content
Snippets Groups Projects
Commit 4aceac41 authored by Nicolas Martinelli's avatar Nicolas Martinelli
Browse files

[FIX] website_sale_stock: prevent buying consumable


- In Website > Settings, set 'Show inventory on website and prevent
  sales if not enough stock'
- Create a consumable product P, publish on the eCommerce
- As user 1, buy 1 units of P => validate the SO => 1 unit is reserved
- As user 2, add 1 unit of P to the cart. In the cart click on the `+`
  to add a unit

The product is removed from the cart.

This happens because `virtual_available` quantity is taken into account,
while it shouldn't be since it is a consumable.

opw-2245075

closes odoo/odoo#50428

X-original-commit: ec6f281f
Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 9040ed92
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment