From cd2c4a78a267aea0d4cd3f7600ad311601513496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20van=20der=20Essen?= Date: Tue, 9 Jun 2015 16:46:04 +0200 Subject: [PATCH] [FIX] pos_restaurant: fix traceback when trashing a table just after creation. (was referencing not-yet-existing table on the server) --- 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 243938bd088..9009c89f69e 100644 --- a/addons/pos_restaurant/static/src/js/floors.js +++ b/addons/pos_restaurant/static/src/js/floors.js @@ -492,6 +492,7 @@ var FloorScreenWidget = screens.ScreenWidget.extend({ 'shape': 'square', 'seats': 1, }); + tw.save_changes(); this.select_table(tw); this.check_empty_floor(); },