Skip to content
Snippets Groups Projects
Commit ba5acd28 authored by Andrea Grazioso (agr-odoo)'s avatar Andrea Grazioso (agr-odoo)
Browse files

[FIX] point_of_sale: fix hitting backspace on 0 quantity line


Fine tuning of 02d9b51e

Steps:
- Install l10n_fr_pos_cert
- Open POS session with French company
- Add product
- Hit backspace: set new quantity to 0
- Hit backspace again

Error will be shown. This occur because `event.detail.buffer` might be null

closes odoo/odoo#74711

Signed-off-by: default avataragr-odoo <agr-odoo@users.noreply.github.com>
parent 47dc6735
Branches
Tags
No related merge requests found
......@@ -171,7 +171,7 @@ odoo.define('point_of_sale.ProductScreen', function(require) {
});
return;
}
const parsedInput = parse.float(event.detail.buffer) || 0
const parsedInput = event.detail.buffer && parse.float(event.detail.buffer) || 0;
if(lastId != selectedLine.cid)
this._showDecreaseQuantityPopup();
else if(currentQuantity < parsedInput)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment