[IMP] when trying to focus the first visible field in the editable list view, ensure that we only stop when we actually manage to focus a field

bzr revid: xmo@openerp.com-20120802100020-kbmo1s5shjwaof69
This commit is contained in:
Xavier Morel 2012-08-02 12:00:20 +02:00
parent a2c6890705
commit 84bf640e67
1 changed files with 1 additions and 2 deletions

View File

@ -681,9 +681,8 @@ openerp.web.list_editable = function (instance) {
if (!field.$element.is(':visible')) {
return false;
}
field.focus();
// Stop as soon as a field got focused
return true;
return field.focus() !== false;
});
},
edit: function (record, configureField, options) {