From 15b0596c3105b4cbff53bb0904feb1f8fe353806 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Fri, 28 Aug 2015 13:19:48 +0200 Subject: [PATCH] [IMP] web: remove onchange on m2o one remove record These onchanges were needless since it was already done by the BufferedDataSet when we use alter_ids to add/remove ids/virtual ids from the recordset. The onchanges this commit remove were introduced with 6b907bb4d in juliet 2012 whilst the onchange in the BufferedDataSet when using dataset alter_ids was with dd747c096 in october 2012. closes #8273 fixes #7595 opw-644706 --- addons/web/static/src/js/view_form.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index 2ed32ab15c2..d6800f8cd45 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -4415,10 +4415,6 @@ instance.web.form.One2ManyListView = instance.web.ListView.extend({ })); this.on('edit:after', this, this.proxy('_after_edit')); this.on('save:before cancel:before', this, this.proxy('_before_unedit')); - - this.records - .bind('add', this.proxy("changed_records")) - .bind('remove', this.proxy("changed_records")); this.on('save:after', this, this.proxy("changed_records")); }, start: function () {