[FIX] edit event in editable list: use records collection
bzr revid: xmo@openerp.com-20110818101936-4jbnt8rhlsjkxxyt
This commit is contained in:
parent
d433eada00
commit
10117faf2c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue