From 91911159f5bc12046d791744ff23562378be047f Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Tue, 6 Jan 2015 18:50:28 +0100 Subject: [PATCH] [FIX] web: editable list, no re-rendering on field validation When adding several lines in an editable list (adding 7 lines to an invoice for instance), then clicking on the first row direcly after having filled the last line, the value of the cell sometimes had the value of the last line. Just a display bug, but still. Using internal_set_value avoid the re-rendering of the cell, and solve the above issue opw-620111 --- addons/web/static/src/js/view_form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index aceb3e665fd..48df090a8d9 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -3892,7 +3892,7 @@ instance.web.form.One2ManyListView = instance.web.ListView.extend({ r = record; _.each(self.editor.form.fields, function(field){ field._inhibit_on_change_flag = true; - field.set_value(r.attributes[field.name]); + field.internal_set_value(r.attributes[field.name]); field._inhibit_on_change_flag = false; }); return _.every(self.editor.form.fields, function(field){