bugfix (clickable checkbox in edit-list)

develop
Andreas Osim 2018-05-22 14:12:24 +02:00
parent 12653ae05d
commit cc0742676c
2 changed files with 14 additions and 1 deletions

View File

@ -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.

View File

@ -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;