diff options
| author | Vincent Schippefilt <vsc@odoo.com> | 2019-03-06 14:02:25 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2019-03-06 20:07:17 +0100 |
| commit | c441ee694952b76bca5214d6ec4236f74f2ceb41 (patch) | |
| tree | a136de051d6b614929c9448ca91eff09312767fd /addons/pos_restaurant/static/src/js | |
| parent | b09831c5f21a46004a7bad8b9357c4bed4548535 (diff) | |
[REF] pos_restaurant: adapt code after jQuery update
Part of task 1896658
Co-authored-by: Aaron Bohy <aab@odoo.com>
Co-authored-by: Christophe Matthieu <chm@odoo.com>
Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
Co-authored-by: David Monjoie <dmo@odoo.com>
Co-authored-by: Martin Geubelle <mge@odoo.com>
Co-authored-by: svs-odoo <svs@odoo.com>
Co-authored-by: Vincent Schippefilt <vsc@odoo.com>
Diffstat (limited to 'addons/pos_restaurant/static/src/js')
| -rw-r--r-- | addons/pos_restaurant/static/src/js/floors.js | 2 |
1 files changed, 1 insertions, 1 deletions
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.'), |
