summaryrefslogtreecommitdiff
path: root/addons/pos_restaurant/static/src/js
diff options
context:
space:
mode:
authorPierre Masereel <pim@odoo.com>2019-08-22 12:39:31 +0000
committerPierre Masereel <pim@odoo.com>2019-08-22 13:24:13 +0000
commit7fa5e80f0ee4e8a012d28f47a8042be8125a5a88 (patch)
tree92a5997ad3267379b2b925fee886368eb58ab2de /addons/pos_restaurant/static/src/js
parent4645b07731e8992bf3e0096f659b821e9e4227ab (diff)
[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 <pimodoo@users.noreply.github.com>
Diffstat (limited to 'addons/pos_restaurant/static/src/js')
-rw-r--r--addons/pos_restaurant/static/src/js/tours/pos_restaurant.js8
1 files changed, 1 insertions, 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));
}