From c441ee694952b76bca5214d6ec4236f74f2ceb41 Mon Sep 17 00:00:00 2001 From: Vincent Schippefilt Date: Wed, 6 Mar 2019 14:02:25 +0100 Subject: [PATCH] [REF] pos_restaurant: adapt code after jQuery update Part of task 1896658 Co-authored-by: Aaron Bohy Co-authored-by: Christophe Matthieu Co-authored-by: Mathieu Duckerts-Antoine Co-authored-by: David Monjoie Co-authored-by: Martin Geubelle Co-authored-by: svs-odoo Co-authored-by: Vincent Schippefilt --- addons/pos_restaurant/static/src/js/floors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.'),