diff --git a/addons/pos_restaurant/static/src/js/floors.js b/addons/pos_restaurant/static/src/js/floors.js index 213b0afef09..da8ae75425e 100644 --- a/addons/pos_restaurant/static/src/js/floors.js +++ b/addons/pos_restaurant/static/src/js/floors.js @@ -421,7 +421,7 @@ var FloorScreenWidget = screens.ScreenWidget.extend({ method: 'write', args: [[this.floor.id], {'background_color': background}], }) - .fail(function (type, err){ + .guardedCatch(function (){ 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.'),