[FIX] better filtering of id-less rows being selected in a ListView.List body

bzr revid: xmo@openerp.com-20120702110658-7t8pu12uso55enrh
This commit is contained in:
Xavier Morel 2012-07-02 13:06:58 +02:00
parent 3cc825994b
commit d1eeaaa51e
1 changed files with 1 additions and 1 deletions

View File

@ -425,7 +425,7 @@ openerp.web.list_editable = function (instance) {
record = new instance.web.list.Record();
this.records.add(
record, {at: this.options.editable === 'top' ? 0 : null});
$row = this.$current.find(':not([data-id])');
$row = this.$current.children('tr:not([data-id])');
} else {
record = this.records.get($row.data('id'));
}