From b8ffda3c07b5e677e8d9b082030c8b5a7a60ce9c Mon Sep 17 00:00:00 2001 From: FrancoisGe Date: Mon, 23 Jan 2023 11:19:56 +0100 Subject: [PATCH] [IMP] backend/views: relative width of a field is no longer supported in list views Since the conversion of the list view to owl, the relative field size has not been reimplemented. We have decided not to support it anymore. So we will remove all its uses. The relative width consists in adding a width attribute with an integer value. This value corresponds to the weight of the field, the higher it is, the more space the field will take. This size is only used when the list is empty. Example of this: The first field will take 2x more space than the first one when the list is empty. closes odoo/documentation#3375 Related: odoo/odoo#110382 Related: odoo/enterprise#36020 Signed-off-by: Antoine Vandevenne (anv) --- content/developer/reference/backend/views.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/content/developer/reference/backend/views.rst b/content/developer/reference/backend/views.rst index 6d00da6bc..6fb1e59e0 100644 --- a/content/developer/reference/backend/views.rst +++ b/content/developer/reference/backend/views.rst @@ -2010,10 +2010,9 @@ Possible children elements of the list view are: ``width`` (for ``editable``) when there is no data in the list, the width of a column can be forced by setting this attribute. The value can be an absolute width (e.g. - '100px'), or a relative weight (e.g. '3', meaning that this column will - be 3 times larger than the others). Note that when there are records in - the list, we let the browser automatically adapt the column's widths - according to their content, and this attribute is thus ignored. + '100px'). Note that when there are records in the list, we let the + browser automatically adapt the column's widths according to their content, + and this attribute is thus ignored. ``decoration-{$name}`` allow changing the style of a cell's text based on the corresponding record's attributes.