[FIX] web: fix error handling of _applyChanges

After 5df4746c9a the error handling has
been changed inaccurately. This fix sets the error handling correctly.

closes odoo/odoo#32247

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
Vincent Schippefilt
2019-03-29 13:21:10 +00:00
parent 9aea7ae162
commit 7b884afbda
@@ -52,7 +52,7 @@ var FieldManagerMixin = {
if (event.data.force_save) {
return self.model.save(dataPointID).then(function () {
return self._confirmSave(dataPointID);
}, function /* on_failure */ () {
}).guardedCatch(function () {
return self._rejectSave(dataPointID);
});
} else if (options.notifyChange !== false) {