From 60644cf3442bfa551568405e7e0be146ba157b8e Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Fri, 23 Aug 2019 08:29:16 +0000 Subject: [PATCH] [FIX] pos_restaurant: edition of table When you were trying to edit the table map of your pos, you were getting a traceback because, it was getting information from a table that is not in the list of table. So we are now correctly set the table in the list when it is created and duplicated. TASK-ID: 2057368 --- addons/pos_restaurant/static/src/js/floors.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/pos_restaurant/static/src/js/floors.js b/addons/pos_restaurant/static/src/js/floors.js index fb083e81a95..2b67788a9e0 100644 --- a/addons/pos_restaurant/static/src/js/floors.js +++ b/addons/pos_restaurant/static/src/js/floors.js @@ -216,6 +216,7 @@ var TableWidget = PosBaseWidget.extend({ for (var field in table) { self.table[field] = table[field]; } + self.pos.tables_by_id[table.id] = self.table; self.renderElement(); }); }, function(type,err) {