[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
This commit is contained in:
Denis Ledoux 2015-01-06 18:50:28 +01:00
parent ae34a1e93e
commit 91911159f5
1 changed files with 1 additions and 1 deletions

View File

@ -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){