[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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user