From 9fbb4fb44ff92cdee53454ab328c10ae66a11aa0 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Mon, 18 Mar 2019 14:51:04 +0000 Subject: [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 --- addons/web/static/src/js/fields/basic_fields.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'addons/web/static/src/js/fields/basic_fields.js') diff --git a/addons/web/static/src/js/fields/basic_fields.js b/addons/web/static/src/js/fields/basic_fields.js index 4940839e612..1c5c19ebcf8 100644 --- a/addons/web/static/src/js/fields/basic_fields.js +++ b/addons/web/static/src/js/fields/basic_fields.js @@ -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'], -- cgit v1.2.3