From 9d4671d68f4b1a61cb9ae22ac8d8c6eabe4441f6 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#4910 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 d9e74a736..fc98520ee 100644 --- a/content/developer/reference/backend/views.rst +++ b/content/developer/reference/backend/views.rst @@ -1819,6 +1819,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::