diff --git a/addons/point_of_sale/static/src/app/screens/product_screen/product_screen.js b/addons/point_of_sale/static/src/app/screens/product_screen/product_screen.js index 5705974625a..38fe8467e76 100644 --- a/addons/point_of_sale/static/src/app/screens/product_screen/product_screen.js +++ b/addons/point_of_sale/static/src/app/screens/product_screen/product_screen.js @@ -363,10 +363,10 @@ export class ProductScreen extends ControlButtonsMixin(Component) { return true; } if (newQuantity >= selectedLine.saved_quantity) { + selectedLine.set_quantity(newQuantity); if (newQuantity == 0) { order._unlinkOrderline(selectedLine); } - selectedLine.set_quantity(newQuantity); return true; } const newLine = selectedLine.clone();