diff --git a/addons/pos_restaurant/static/src/js/floors.js b/addons/pos_restaurant/static/src/js/floors.js index c71342edb8e..f73998b37ed 100644 --- a/addons/pos_restaurant/static/src/js/floors.js +++ b/addons/pos_restaurant/static/src/js/floors.js @@ -258,7 +258,7 @@ var TableWidget = PosBaseWidget.extend({ }, function(err,event) { self.gui.show_popup('error',{ 'title':_t('Changes could not be saved'), - 'body': _t('Check your internet connection and access rights'), + 'body': _t('You must be connected to the internet to save your changes.'), }); event.stopPropagation(); event.preventDefault(); @@ -292,6 +292,13 @@ var TableWidget = PosBaseWidget.extend({ } floorplan.update_toolbar(); self.destroy(); + }, function(err, event) { + self.gui.show_popup('error', { + 'title':_t('Changes could not be saved'), + 'body': _t('You must be connected to the internet to save your changes.'), + }); + event.stopPropagation(); + event.preventDefault(); }); }, get_notifications: function(){ //FIXME : Make this faster @@ -402,7 +409,7 @@ var FloorScreenWidget = screens.ScreenWidget.extend({ .call('set_background_color',[this.floor.id, background]).fail(function(err,event){ self.gui.show_popup('error',{ 'title':_t('Changes could not be saved'), - 'body': _t('Check your internet connection and access rights'), + 'body': _t('You must be connected to the internet to save your changes.'), }); event.stopPropagation(); event.preventDefault(); diff --git a/addons/pos_restaurant/static/src/xml/floors.xml b/addons/pos_restaurant/static/src/xml/floors.xml index e2ca6bfb419..5e6e54d0c15 100644 --- a/addons/pos_restaurant/static/src/xml/floors.xml +++ b/addons/pos_restaurant/static/src/xml/floors.xml @@ -107,7 +107,7 @@ This floor has no tables yet, use the button in the editing toolbar to create new tables.
- +