diff options
| author | Aaron Bohy <aab@odoo.com> | 2019-03-18 14:51:04 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2019-04-02 11:55:57 +0000 |
| commit | 9fbb4fb44ff92cdee53454ab328c10ae66a11aa0 (patch) | |
| tree | 5fd611cbf41a582951250558ff1055ffe9fba9fe /addons/web/static/src/js/fields | |
| parent | a75fa7e377829ac22f85eab3bfefd79705458236 (diff) | |
[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>
Diffstat (limited to 'addons/web/static/src/js/fields')
| -rw-r--r-- | addons/web/static/src/js/fields/basic_fields.js | 3 | ||||
| -rw-r--r-- | addons/web/static/src/js/fields/relational_fields.js | 1 |
2 files changed, 2 insertions, 2 deletions
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'], diff --git a/addons/web/static/src/js/fields/relational_fields.js b/addons/web/static/src/js/fields/relational_fields.js index 7be77cedca0..0f247ba3a8d 100644 --- a/addons/web/static/src/js/fields/relational_fields.js +++ b/addons/web/static/src/js/fields/relational_fields.js @@ -766,6 +766,7 @@ var FieldMany2One = AbstractField.extend({ }); var ListFieldMany2One = FieldMany2One.extend({ + //-------------------------------------------------------------------------- // Private //-------------------------------------------------------------------------- |
