[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
This commit is contained in:
Pierre Masereel
2019-08-23 09:35:11 +00:00
parent 60644cf344
commit 3374110a23
@@ -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',