Skip to content

Commit 5d61b99

Browse files
committed
feat(xml): Add column_invisible documentation
1 parent 540fabb commit 5d61b99

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

odoo.rng

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,16 @@
599599
<attribute name="invisible" a:defaultValue="False">
600600
<a:documentation>
601601
Whether the element is invisible. Takes a Python expression.
602+
In a tree view, this only hides the singular cell; use `column_invisible` to hide the column.
603+
</a:documentation>
604+
</attribute>
605+
</define>
606+
607+
<define name="column_invisible">
608+
<attribute name="column_invisible" a:defaultValue="False">
609+
<a:documentation>
610+
Whether this column (in a tree view) is invisible. Takes a Python expression.
611+
To set *defaults* for hiding or showing columns, use `optional` instead.
602612
</a:documentation>
603613
</attribute>
604614
</define>
@@ -618,6 +628,7 @@
618628
<ref name="decoration"/>
619629
<ref name="oe_class"/>
620630
<ref name="invisible"/>
631+
<ref name="column_invisible">
621632
<ref name="groups"/>
622633
<attribute name="string">
623634
<a:documentation>
@@ -1762,4 +1773,4 @@
17621773
<ref name="openerp"/>
17631774
</choice>
17641775
</start>
1765-
</grammar>
1776+
</grammar>

0 commit comments

Comments
 (0)