[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:
qsm-odoo
2015-09-24 14:40:17 +02:00
parent cbf25a83f4
commit 333018640a
+4 -1
View File
@@ -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));