[FIX] edit event in editable list: use records collection

bzr revid: xmo@openerp.com-20110818101936-4jbnt8rhlsjkxxyt
This commit is contained in:
Xavier Morel 2011-08-18 12:19:36 +02:00
parent d433eada00
commit 10117faf2c
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ openerp.base.list.editable = function (openerp) {
this.dataset.index)));
$(this).trigger(
'edit',
[this.rows[this.dataset.index].data.id.value, this.dataset]);
[this.records.at(this.dataset.index).get('id'), this.dataset]);
},
new_record: function () {
this.dataset.index = null;