From cd69dee3f2c7a69ca2732688e1a0989473479711 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Wed, 5 Nov 2014 13:36:20 +0100 Subject: [PATCH] [FIX] web: inhibit on change flag when validating editable list To valid all editable list line, we iterate on the lines and set the editor form with the line value, using set_value. The _inhibit_on_change_flag should be set to True to avoid triggering on changes events opw-617395 --- addons/web/static/src/js/view_form.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index f4dd7ec501f..cfada94c4e7 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -3890,7 +3890,9 @@ instance.web.form.One2ManyListView = instance.web.ListView.extend({ return _.every(this.records.records, function(record){ r = record; _.each(self.editor.form.fields, function(field){ + field._inhibit_on_change_flag = true; field.set_value(r.attributes[field.name]); + field._inhibit_on_change_flag = false; }); return _.every(self.editor.form.fields, function(field){ field.process_modifiers();