diff --git a/addons/pos_self_order/static/src/components/product_card/product_card.js b/addons/pos_self_order/static/src/components/product_card/product_card.js index cb2a4aa770b..da8439f9032 100644 --- a/addons/pos_self_order/static/src/components/product_card/product_card.js +++ b/addons/pos_self_order/static/src/components/product_card/product_card.js @@ -24,21 +24,9 @@ export class ProductCard extends Component { clickOnProduct() { const product = this.props.product; - if (!this.canOpenProductMainView(product)) { - return; - } this.router.navigate("product", { id: product.id }); } - canOpenProductMainView(product) { - return ( - this.selfOrder.table || - product.has_image || - product.description_sale || - product.attributes.length - ); - } - getQtyInCartString() { // FIXME need to implement price_extra const productId = this.props.line.product_id; diff --git a/addons/pos_self_order/static/tests/tours/self_order_after_meal_cart_tour.js b/addons/pos_self_order/static/tests/tours/self_order_after_meal_cart_tour.js index b02e24bdbda..e9248b71bea 100644 --- a/addons/pos_self_order/static/tests/tours/self_order_after_meal_cart_tour.js +++ b/addons/pos_self_order/static/tests/tours/self_order_after_meal_cart_tour.js @@ -23,6 +23,9 @@ registry.category("web_tour.tours").add("self_order_after_meal_cart_tour", { ...PosSelf.action.addProduct("Office Chair Black", 1), ...PosSelf.action.addProduct("Office Chair Black", 2, "Description"), ...PosSelf.action.addProduct("Large Cabinet", 2), + // When clicking on basic product (without image, sale description and attributes) it + // displays the product window. + ...PosSelf.action.addProduct("Virtual Home Staging", 1), PosSelf.action.clickPrimaryBtn("Review"), // Here we're looking at whether when an orderline is clicked on from