From fddcfeb3aed29df5cdbeb5d3f2a4b06488b1310a Mon Sep 17 00:00:00 2001 From: Adrien Widart Date: Thu, 20 Jan 2022 15:21:07 +0000 Subject: [PATCH] [FIX] pos_restaurant: remove useless cleaning [1] has changed the summary structure of an order. To avoid any issues during the deployment, we added some instructions to remove the old summaries. Now, these instructions can be removed. [1] 911a178c99fe56c5f644083a0bb5e992a11f34ed closes odoo/odoo#83481 X-original-commit: 1638b3490d8fb44a6b57d6168e5e74e567f0fd50 Signed-off-by: Masereel Pierre Signed-off-by: Adrien Widart --- addons/pos_restaurant/static/src/js/multiprint.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/addons/pos_restaurant/static/src/js/multiprint.js b/addons/pos_restaurant/static/src/js/multiprint.js index 7fd185f5165..036f9aea387 100644 --- a/addons/pos_restaurant/static/src/js/multiprint.js +++ b/addons/pos_restaurant/static/src/js/multiprint.js @@ -300,13 +300,6 @@ models.Order = models.Order.extend({ init_from_JSON: function(json){ _super_order.init_from_JSON.apply(this,arguments); this.saved_resume = json.multiprint_resume && JSON.parse(json.multiprint_resume); - // Since the order summary structure has changed, we need to remove the old lines - // Otherwise, this fix deployment will lead to some errors - for (var key in this.saved_resume) { - if (this.saved_resume[key].pid == undefined) { - delete this.saved_resume[key]; - } - } }, });