From 62d8f8bff5820a480a12aa8ee4970912c6c8bc6c Mon Sep 17 00:00:00 2001 From: Benoit Socias Date: Wed, 21 Jun 2023 14:22:57 +0000 Subject: [PATCH] [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: 5a446f5c59704f2c1331a406c6d4d9d44fc0b048 Signed-off-by: Benoit Socias (bso) --- content/developer/reference/backend/views.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/developer/reference/backend/views.rst b/content/developer/reference/backend/views.rst index 8c7957d85..de82c91c6 100644 --- a/content/developer/reference/backend/views.rst +++ b/content/developer/reference/backend/views.rst @@ -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::