From b7840dde39d0f004c8a4f9d8f0f058d756650554 Mon Sep 17 00:00:00 2001 From: "Michael Mattiello (mcm)" Date: Wed, 3 Jun 2020 07:54:11 +0000 Subject: [IMP] web: add nolabel to list view This commit adds the support of nolabel attribute on fields in list view. This attribute can be used to empty the column header. Example of use: module.example.tree.opportunity module.example Result: This will create a tree view with 2 columns. The second column will have an empty header and won't be sortable. Name | --------+-------------- Record1 | [tag1] Record2 | [tag1][tag2] Record3 | [tag2] closes odoo/odoo#52302 Task: 2269315 Signed-off-by: Aaron Bohy (aab) --- doc/reference/views.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/reference') diff --git a/doc/reference/views.rst b/doc/reference/views.rst index d3c9b7fb60c..a0e4011e1d6 100644 --- a/doc/reference/views.rst +++ b/doc/reference/views.rst @@ -1480,6 +1480,9 @@ Possible children elements of the list view are: ``{$name}`` can be ``bf`` (``font-weight: bold``), ``it`` (``font-style: italic``), or any `bootstrap contextual color`_ (``danger``, ``info``, ``muted``, ``primary``, ``success`` or ``warning``). + ``nolabel`` + if set to "1", the column header will remain empty. Also, the column + won't be sortable. .. note:: -- cgit v1.2.3