diff --git a/addons/point_of_sale/static/src/js/Screens/ProductScreen/ControlButtons/ProductInfoButton.js b/addons/point_of_sale/static/src/js/Screens/ProductScreen/ControlButtons/ProductInfoButton.js index 0c0a7b2857d..13fcfd05dc0 100644 --- a/addons/point_of_sale/static/src/js/Screens/ProductScreen/ControlButtons/ProductInfoButton.js +++ b/addons/point_of_sale/static/src/js/Screens/ProductScreen/ControlButtons/ProductInfoButton.js @@ -21,9 +21,9 @@ odoo.define('point_of_sale.ProductInfoButton', function(require) { } onClick() { const orderline = this.env.pos.get_order().get_selected_orderline(); - const product = orderline.get_product(); - const quantity = orderline.get_quantity(); if (orderline) { + const product = orderline.get_product(); + const quantity = orderline.get_quantity(); this.showPopup('ProductInfoPopup', { product, quantity }); } }