diff options
| author | Pierre Masereel <pim@odoo.com> | 2019-08-23 09:19:39 +0000 |
|---|---|---|
| committer | Pierre Masereel <pim@odoo.com> | 2019-08-23 09:35:11 +0000 |
| commit | 3374110a23e31ef8975e7246b27ec887d6dd5d36 (patch) | |
| tree | f4bfd6cff925786162246d5544e78b6ccc520fb0 /addons/pos_restaurant/static/src | |
| parent | 60644cf3442bfa551568405e7e0be146ba157b8e (diff) | |
[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
Diffstat (limited to 'addons/pos_restaurant/static/src')
| -rw-r--r-- | addons/pos_restaurant/static/src/js/floors.js | 3 |
1 files changed, 3 insertions, 0 deletions
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', |
