summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorMichael Mattiello (mcm) <mcm@odoo.com>2020-06-03 07:54:11 +0000
committerMichael Mattiello (mcm) <mcm@odoo.com>2020-06-04 06:02:32 +0000
commitb7840dde39d0f004c8a4f9d8f0f058d756650554 (patch)
treecda65028642f2ee61d334ab0781ea15e7767307f /doc/reference
parent3b59efa6142cf1da810d77728e3e5054b0846a06 (diff)
[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: <record id="module_example_tree_view" model="ir.ui.view"> <field name="name">module.example.tree.opportunity</field> <field name="model">module.example</field> <field name="arch" type="xml"> <tree> <field name="name"/> <field name="tag_ids" widget="many2many_tags" nolabel="1"/> </tree> </field> </record> 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) <aab@odoo.com>
Diffstat (limited to 'doc/reference')
-rw-r--r--doc/reference/views.rst3
1 files changed, 3 insertions, 0 deletions
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::