diff --git a/addons/point_of_sale/static/tests/tours/helpers/TicketScreenTourMethods.js b/addons/point_of_sale/static/tests/tours/helpers/TicketScreenTourMethods.js index 7426dd27b55..a53fd1a4573 100644 --- a/addons/point_of_sale/static/tests/tours/helpers/TicketScreenTourMethods.js +++ b/addons/point_of_sale/static/tests/tours/helpers/TicketScreenTourMethods.js @@ -163,7 +163,7 @@ class Check { checkStatus(orderName, status) { return [ { - trigger: `.ticket-screen .order-row > .col:contains("${orderName}") ~ .col:nth-child(6):contains(${status})`, + trigger: `.ticket-screen .order-row > .col:contains("${orderName}") ~ .col:nth-child(7):contains(${status})`, run: () => {}, mobile: false, }, diff --git a/addons/pos_self_order/static/src/app/components/product_card/product_card.js b/addons/pos_self_order/static/src/app/components/product_card/product_card.js index 0135c5fa048..128fe63317b 100644 --- a/addons/pos_self_order/static/src/app/components/product_card/product_card.js +++ b/addons/pos_self_order/static/src/app/components/product_card/product_card.js @@ -78,7 +78,7 @@ export class ProductCard extends Component { }, 600); } - async selectProduct() { + async selectProduct(qty = 1) { const product = this.props.product; if (!this.selfOrder.ordering || !product.self_order_available) { @@ -97,13 +97,13 @@ export class ProductCard extends Component { ); if (isProductInCart) { - isProductInCart.qty++; + isProductInCart.qty += qty; } else { const lines = this.selfOrder.currentOrder.lines; const line = new Line({ id: null, uuid: null, - qty: 1, + qty: qty, product_id: product.id, }); line.full_product_name = constructFullProductName( @@ -121,8 +121,8 @@ export class ProductCard extends Component { this.dialog.add(ProductInfoPopup, { product: this.props.product, title: this.props.product.name, - addToCart: () => { - this.selectProduct(); + addToCart: (qty) => { + this.selectProduct(qty); }, }); } diff --git a/addons/pos_self_order/static/src/app/components/product_card/product_card.xml b/addons/pos_self_order/static/src/app/components/product_card/product_card.xml index a44d66a788a..79d104aabfc 100644 --- a/addons/pos_self_order/static/src/app/components/product_card/product_card.xml +++ b/addons/pos_self_order/static/src/app/components/product_card/product_card.xml @@ -4,7 +4,7 @@