Skip to content
Snippets Groups Projects
Commit 7fa5e80f authored by Pierre Masereel's avatar Pierre Masereel
Browse files

[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: default avatarpimodoo <pimodoo@users.noreply.github.com>
parent 4645b077
Branches
Tags
No related merge requests found
......@@ -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));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment