From 7fa5e80f0ee4e8a012d28f47a8042be8125a5a88 Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Thu, 22 Aug 2019 12:39:31 +0000 Subject: [PATCH] [FIX] pos_restaurant: remove verify_sync when opening table When we open a table, the option verify sync is called, and doesn't always work because of a race condition when we chack the status of connecting, and the icon that has already changed. As it doesn't really check anything because we check in python that the orders are synchronised, we removed it. closes odoo/odoo#35949 Signed-off-by: pimodoo --- .../pos_restaurant/static/src/js/tours/pos_restaurant.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/addons/pos_restaurant/static/src/js/tours/pos_restaurant.js b/addons/pos_restaurant/static/src/js/tours/pos_restaurant.js index 73ea1938f49..324c5647307 100644 --- a/addons/pos_restaurant/static/src/js/tours/pos_restaurant.js +++ b/addons/pos_restaurant/static/src/js/tours/pos_restaurant.js @@ -30,12 +30,7 @@ odoo.define('pos_reataurant.tour.synchronized_table_management', function (requi run: function() { var orders = $('.order-sequence'); if (orders.length === order_count) { - var fail = orders.toArray().some(function(order){ - return !order.firstChild.data.includes('S-'); - }); - if (fail) { - throw "sync failed"; - } + return } else { throw "sync failed"; } @@ -92,7 +87,6 @@ odoo.define('pos_reataurant.tour.synchronized_table_management', function (requi trigger: '.label:contains(' + table_id +')', run: 'click', }]; - steps = steps.concat(verify_sync()); if (order_count !== null){ steps = steps.concat(verify_orders_synced(order_count)); }