summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/field_manager_mixin.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2017-03-01 09:47:39 +0100
committerAaron Bohy <aab@odoo.com>2017-04-11 19:44:38 +0200
commit2bd4497b494e6d3dece46026283cce75beb1da91 (patch)
treed68e467e845fe0916b8356779191db3bb05a78cf /addons/web/static/src/js/views/field_manager_mixin.js
parent1163bab5c62c8737449a43a637f77ec2c572bcb8 (diff)
[FIX] web: apply onchange even if warning
The onchange route returns field values, but it can also return a warning, that needs to be displayed in a dialog. When it does, the new values must be applied anyway, which wasn't the case before this rev. We generalized the 'warning' custom event handled by the webclient so that it can display a warning in a dialog (and not only through the NotificationManager).
Diffstat (limited to 'addons/web/static/src/js/views/field_manager_mixin.js')
-rw-r--r--addons/web/static/src/js/views/field_manager_mixin.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/addons/web/static/src/js/views/field_manager_mixin.js b/addons/web/static/src/js/views/field_manager_mixin.js
index f110f9be8bf..00607157a1f 100644
--- a/addons/web/static/src/js/views/field_manager_mixin.js
+++ b/addons/web/static/src/js/views/field_manager_mixin.js
@@ -86,12 +86,6 @@ var FieldManagerMixin = {
} else {
self._confirmChange(dataPointID, result, event);
}
- }).fail(function (warning) {
- new Dialog(self, {
- size: 'medium',
- title: warning.title,
- $content: qweb.render("CrashManager.warning", warning)
- }).open();
});
},
/**