[IMP] developer/views: add optional attribute for fields of list views

The attributes of fields of list views do not mention the `optional`
attribute while it is used by chapter 12 of the R&D Training.

This commit describes this `optional` attribute.

task-3380953

closes odoo/documentation#4906

X-original-commit: 5a446f5c59
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
This commit is contained in:
Benoit Socias 2023-06-21 14:22:57 +00:00
parent e206c27411
commit 62d8f8bff5

View File

@ -1811,6 +1811,10 @@ Possible children elements of the list view are:
``nolabel``
if set to "1", the column header will remain empty. Also, the column
won't be sortable.
``optional``
makes the column optional. If set to "hide", the column is hidden by
default. If set to "show", the column is visible by default.
User visibility choices are stored in the browser local storage.
.. note::