From d1eeaaa51eef4cf208ef74d8e888e9b0fa80ac05 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 2 Jul 2012 13:06:58 +0200 Subject: [PATCH] [FIX] better filtering of id-less rows being selected in a ListView.List body bzr revid: xmo@openerp.com-20120702110658-7t8pu12uso55enrh --- addons/web/static/src/js/view_list_editable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/view_list_editable.js b/addons/web/static/src/js/view_list_editable.js index 0843426a330..a0ff796ed5e 100644 --- a/addons/web/static/src/js/view_list_editable.js +++ b/addons/web/static/src/js/view_list_editable.js @@ -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')); }