diff options
| author | Aaron Bohy <aab@odoo.com> | 2019-09-13 07:36:33 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2019-09-18 11:31:43 +0000 |
| commit | c7ec4bb39d5a52517acb23429a4d7fc71abbf363 (patch) | |
| tree | 9e996e676ba398178f50b285dd4c77fb24b15283 /addons/web/static/src | |
| parent | 4fba43c027fcc52066ad5149a7fd08bde1109806 (diff) | |
[FIX] web: list: multi edition: disable onchanges
Onchanges make no sense in multi edition as they would be computed
on the 'reference' record (the one use to edit), but applied on all
selected records. This rev. simply disables them in that case.
Task 2068280
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/views/list/list_controller.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/list/list_controller.js b/addons/web/static/src/js/views/list/list_controller.js index 32c05537439..e096a157225 100644 --- a/addons/web/static/src/js/views/list/list_controller.js +++ b/addons/web/static/src/js/views/list/list_controller.js @@ -778,6 +778,8 @@ var ListController = BasicController.extend({ this.multipleRecordsSavingPromise = this._saveMultipleRecords(ev.data.dataPointID, ev.target.__node, ev.data.changes); }; + // disable onchanges as we'll save directly + ev.data.notifyChange = false; } this._super.apply(this, arguments); }, |
