bugfix (clickable checkbox in edit-list)
parent
12653ae05d
commit
cc0742676c
|
|
@ -531,8 +531,13 @@ ListRenderer.include({
|
|||
* @returns {Deferred} this deferred is resolved immediately
|
||||
*/
|
||||
_renderView: function () {
|
||||
var self = this;
|
||||
this.currentRow = null;
|
||||
return this._super.apply(this, arguments);
|
||||
return this._super.apply(this, arguments).then(function () {
|
||||
if (self._isEditable()) {
|
||||
self.$('table').addClass('o_editable_list');
|
||||
}
|
||||
});
|
||||
},
|
||||
/**
|
||||
* Force the resequencing of the items in the list.
|
||||
|
|
|
|||
|
|
@ -6,6 +6,14 @@
|
|||
background-color: @odoo-view-background-color;
|
||||
margin-bottom: 0px;
|
||||
|
||||
// Checkbox in editable list
|
||||
// should be clickable and activate the row
|
||||
&.o_editable_list .o_data_row:not(.o_selected_row) .o_data_cell {
|
||||
.o_checkbox:not(.o_readonly_modifier) {
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
&.table {
|
||||
td, th {
|
||||
vertical-align: middle;
|
||||
|
|
|
|||
Loading…
Reference in New Issue