From 3374110a23e31ef8975e7246b27ec887d6dd5d36 Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Fri, 23 Aug 2019 09:19:39 +0000 Subject: [PATCH] [FIX] pos_restaurant: move and resize table in editing When you are trying to resize and/or move a table in editing mode on the floor plan, it doesn't work anymore, because the polling that will count the orders by table will re-render the table after it has been selected so the classes making it dragable are ot there anymore and you cannot move or resize it. Tu ix this behavior, we are not calling table order count when we are in editing mode. TASK-ID: 2057368 --- addons/pos_restaurant/static/src/js/floors.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/pos_restaurant/static/src/js/floors.js b/addons/pos_restaurant/static/src/js/floors.js index 2b67788a9e0..6b29e2a3e57 100644 --- a/addons/pos_restaurant/static/src/js/floors.js +++ b/addons/pos_restaurant/static/src/js/floors.js @@ -315,6 +315,9 @@ var FloorScreenWidget = screens.ScreenWidget.extend({ this.editing = false; }, _table_longpolling: function(){ + if (this.editing) { + return; + } var self = this; rpc.query({ model: 'pos.config',