From bec4e7082970ddd6165f2e12357cec4efd4310b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20van=20der=20Essen?= Date: Fri, 30 Jan 2015 15:31:27 +0100 Subject: [PATCH] [IMP] point_of_sale: show error popup when trying to edit tables offline --- addons/pos_restaurant/static/src/js/floors.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/addons/pos_restaurant/static/src/js/floors.js b/addons/pos_restaurant/static/src/js/floors.js index 8a43c91f00f..46cd86483ba 100644 --- a/addons/pos_restaurant/static/src/js/floors.js +++ b/addons/pos_restaurant/static/src/js/floors.js @@ -238,6 +238,13 @@ openerp.pos_restaurant.load_floors = function(instance,module){ } self.renderElement(); }); + }, function(err,event) { + self.gui.show_popup('error',{ + 'title':_t('Changes could not be saved'), + 'body': _t('Check your internet connection and access rights'), + }); + event.stopPropagation(); + event.preventDefault(); }); }, // destroy the table. We do not really destroy it, we set it