diff options
| author | rde <rde@odoo.com> | 2017-10-09 13:01:23 +0200 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2017-10-12 16:20:42 +0200 |
| commit | c400789d6e303ac3835dab6863363d0984e01e95 (patch) | |
| tree | 74f8cbf7407978090ed570ded42eb3d993d2f02a /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 945f05a3109e9dacb758e2120c54f8e2919f3a43 (diff) | |
[FIX] website_sale_stock(_option): prevent negative stock & traceback
Before this commit, multiple tabs/session adding items to cart could lead to
negative stock displayed in the quantity field.
In some case, it could throw a traceback because the wanted product had
became unavailable in the meantime, causing the cart to be updated and the
line to be deleted from the cart. But then, this line was being accessed again.
Now, negative values are prevented at the screen. And there is a check on the
line record to be sure it exists before accessing it.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
