A column in a list view can be hidden by using the attributes column_invisible
or optional
.
The column_invisible
attribute accepts a boolean value as True/False
or 1/0
. Since this attribute is related to a column in a table that contains more than one object, it does not support condition-based value related to the tree view’s model. An example of using the attribute in a list view is shown below:
However, if the view is defined as an inline tree view in a form view, can be defined condition based on the value from the form view related object.
For example, in the account journal entry view the “Tax Incl.” column is shown in the account move line list view only if the Rounding Method is not “Round Globally”.
The optionl
attribute supports two possible values show/hide
. In case of hide
value the column is hidden from the list view by default, however, the user has the option to make it available by using the “Adjustments” option in the right upper corner of the table.
Additionally, It is possible both attributes to be used together:
In such cases if the optional attribute is with value hide
by default the column is not shown in the view. However, depending on the value that column_invisible
attribute gets it can be available or not in the optional columns shown on click of “Adjustments” icon at the right upper corner of the table.