[FIX] web: record selector state in listview editable
Before this commit, when editing a line in a listview editable, the record selector (checkbox) lost its state after the line edition.
This commit is contained in:
@@ -1020,7 +1020,10 @@ ListView.List = Class.extend( /** @lends instance.web.ListView.List# */{
|
||||
$row = self.$current.children(
|
||||
'[data-id=' + record.get('id') + ']');
|
||||
}
|
||||
$row.replaceWith(self.render_record(record));
|
||||
|
||||
var $newRow = $(self.render_record(record));
|
||||
$newRow.find('.oe_list_record_selector input').prop('checked', !!$row.find('.oe_list_record_selector input').prop('checked'));
|
||||
$row.replaceWith($newRow);
|
||||
},
|
||||
'add': function (ev, records, record, index) {
|
||||
var $new_row = $(self.render_record(record));
|
||||
|
||||
Reference in New Issue
Block a user