From a395a54a7ca58e4a9db6d1e5d30c412a40f0c2a1 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Fri, 11 Mar 2016 12:57:47 +0100 Subject: [FIX] web: dataset alter_ids method must use options x2m send_commands add options for all command to avoid onchange trigger for internal change. --- addons/web/static/src/js/framework/data.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'addons/web/static/src/js/framework/data.js') diff --git a/addons/web/static/src/js/framework/data.js b/addons/web/static/src/js/framework/data.js index 1e437ea2e05..a1b8e1602e9 100644 --- a/addons/web/static/src/js/framework/data.js +++ b/addons/web/static/src/js/framework/data.js @@ -940,11 +940,11 @@ var BufferedDataSet = DataSetStatic.extend({ this.evict_record(id); return this._super(id, signal); }, - alter_ids: function(n_ids) { + alter_ids: function(n_ids, options) { var dirty = !_.isEqual(this.ids, n_ids); - this._super(n_ids); + this._super(n_ids, options); if (dirty) { - this.trigger("dataset_changed", n_ids); + this.trigger("dataset_changed", n_ids, options); } }, }); -- cgit v1.2.3