diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2020-04-29 14:30:12 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2020-04-30 08:25:52 +0000 |
| commit | 8d2fd05382705d4b3987ebac4c842d8507ede9cf (patch) | |
| tree | 81cfe22d3225a17c392f09260b57efa33728c593 /doc/reference/javascript_reference.rst | |
| parent | 6290a2a9d987512ae3d7fe4397bddbdf91cbaf71 (diff) | |
[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#50437
X-original-commit: ec6f281f3cab0bb29e29fa60b125f158e91375c5
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions
