summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/thread_cache/thread_cache.js
diff options
context:
space:
mode:
authorAndrea Grazioso (agr-odoo) <agr@odoo.com>2020-05-26 13:13:17 +0000
committerAndrea Grazioso (agr-odoo) <agr@odoo.com>2020-06-15 08:03:58 +0000
commit6ff646f15051979357d3f0d6f93e6db9ebbd1159 (patch)
tree756a1f89275266ca1a9e64795a3ec6f4976c6ef3 /addons/mail/static/src/models/thread_cache/thread_cache.js
parent7db53df9cbc6e4dd4ba8685f54a0445d04866e39 (diff)
[FIX] website_sale_stock: check cart before payment
Have a Storable Product configured to 'Show inventory below a threshold and prevent sales if not enough stock' (availability settings). Have a quantity available of such product, i.e 100 From the shop create 2 sessions with 2 different users A and B. With both follow the steps in parallel: - put 100 of product in cart - go to checkout up to payment screen Press 'Pay Now' with A (and confirm the order in backend if auto confirm is not enabled so available quantity is updated) Press 'Pay Now' with B 200 of product are requested because all cart checks for availability are done before payment but not on the final step. Adding a final step of check for availability opw-2261598 closes odoo/odoo#52954 X-original-commit: 4d3f2fbdcda68d4f0e0bb3bb34d51e71d963621b Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/thread_cache/thread_cache.js')
0 files changed, 0 insertions, 0 deletions