summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_view.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2020-04-29 14:30:12 +0000
committerNicolas Martinelli <nim@odoo.com>2020-04-30 08:25:52 +0000
commit8d2fd05382705d4b3987ebac4c842d8507ede9cf (patch)
tree81cfe22d3225a17c392f09260b57efa33728c593 /addons/web/static/src/js/views/basic/basic_view.js
parent6290a2a9d987512ae3d7fe4397bddbdf91cbaf71 (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 'addons/web/static/src/js/views/basic/basic_view.js')
0 files changed, 0 insertions, 0 deletions