[IMP] web: editable list: table-layout: fixed
This rev. changes the layout of *editable* list views to a fixed layout. This means that we are now responsible of the width of each column. To do that, we associate with each field type a factor, and the higher the factor is, the larger the column will be (w.r.t. the others). This default value can be overriden in the arch. The fixed layout allows to remove the absolute positionning of widgets inside editable lists (done in the next commit). Part of task 1915702 Co-authored-by: Martin Geubelle <mge@odoo.com>
This commit is contained in:
co-authored by
Martin Geubelle
parent
a75fa7e377
commit
9fbb4fb44f
@@ -444,7 +444,6 @@ var FieldChar = InputField.extend(TranslatableFieldMixin, {
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
var LinkButton = AbstractField.extend({
|
||||
events: _.extend({}, AbstractField.prototype.events, {
|
||||
'click': '_onClick'
|
||||
@@ -483,7 +482,6 @@ var LinkButton = AbstractField.extend({
|
||||
event.stopPropagation();
|
||||
window.open(this.value, '_blank');
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
var FieldDate = InputField.extend({
|
||||
@@ -1164,6 +1162,7 @@ var FieldText = InputField.extend(TranslatableFieldMixin, {
|
||||
*/
|
||||
var HandleWidget = AbstractField.extend({
|
||||
className: 'o_row_handle fa fa-arrows ui-sortable-handle',
|
||||
widthFactor: 0,
|
||||
tagName: 'span',
|
||||
description: "",
|
||||
supportedFieldTypes: ['integer'],
|
||||
|
||||
Reference in New Issue
Block a user