diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-01-23 13:39:09 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-01-23 13:39:09 +0100 |
| commit | b9374d5c2152a5142e29b1d9a1c037eeb1e72147 (patch) | |
| tree | d970dbc903c7ec029797005a5797c266fadd07a3 /addons/web/static/src/js/views/form_relational_widgets.js | |
| parent | 734d9b56da5c57900171ee33b7aea3dbc1ece506 (diff) | |
| parent | 0997a1cf6dc0dbf48df93e5a708b1e823b7d725f (diff) | |
[MERGE] forward port branch 9.0 up to 0997a1cf6dc
Diffstat (limited to 'addons/web/static/src/js/views/form_relational_widgets.js')
| -rw-r--r-- | addons/web/static/src/js/views/form_relational_widgets.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/web/static/src/js/views/form_relational_widgets.js b/addons/web/static/src/js/views/form_relational_widgets.js index 1a3f9e6a1cc..9a24eef6ae5 100644 --- a/addons/web/static/src/js/views/form_relational_widgets.js +++ b/addons/web/static/src/js/views/form_relational_widgets.js @@ -1061,8 +1061,10 @@ var One2ManyListView = X2ManyListView.extend({ this._dataset_changed = false; }); - this.on('warning', this, function(e) { // In case of a one2many, we do not want any warning which comes from the editor - e.stop_propagation(); + this.on('warning', this, function(e) { // In case of editable list view, we do not want any warning which comes from the editor + if (this.editable()) { + e.stop_propagation(); + } }); }, do_add_record: function () { |
