diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index 7b25097ee38..7f56650e412 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -2199,7 +2199,9 @@ class Order extends PosModel { var orderlines = json.lines; for (var i = 0; i < orderlines.length; i++) { var orderline = orderlines[i][2]; - this.add_orderline(Orderline.create({}, {pos: this.pos, order: this, json: orderline})); + if (this.pos.db.get_product_by_id(orderline.product_id)) { + this.add_orderline(Orderline.create({}, { pos: this.pos, order: this, json: orderline })); + } } var paymentlines = json.statement_ids;