Allow PYSON in tree_invisible attribute

issue5425
review21871002
This commit is contained in:
Cédric Krier committed 2016-05-10 10:29:08 +02:00
1 parent b08b37423d
commit 025cdfc985
4 files changed
+7 -8

No files matched your search

+2
View File
@@ -1,3 +1,5 @@
* Allow PYSON in tree_invisible attribute
Version 4.0.0 - 2016-05-02
* Bug fixes (see mercurial logs for details)
* Add sendmail module to send transactional email
+3 -1
View File
@@ -514,7 +514,9 @@ field
* ``widget``: The widget that must be used instead of the default one.
* ``tree_invisible``: Boolean to display or not the column.
* ``tree_invisible``: A string of :ref:`PYSON statement <topics-pyson>`
that will be evaluated as boolean with the context of the view to display
or not the column.
* ``icon``: The name of the field that contains the name of the icon to
display in the column.
+1 -1
View File
@@ -78,7 +78,7 @@ attlist.button &= attribute states { text }?
attlist.button &= attribute change { text }?
attlist.button &= attribute type { "class" | "instance" }?
attlist.button &=
[ a:defaultValue = "0" ] attribute tree_invisible { "0" | "1" }?
[ a:defaultValue = "0" ] attribute tree_invisible { text }?
data = element data { attlist.data, xpath+ }
attlist.data &= empty
xpath = element xpath { attlist.xpath,
+1 -6
View File
@@ -276,12 +276,7 @@
</define>
<define name="attlist.button" combine="interleave">
<optional>
<attribute name="tree_invisible" a:defaultValue="0">
<choice>
<value>0</value>
<value>1</value>
</choice>
</attribute>
<attribute name="tree_invisible" a:defaultValue="0"/>
</optional>
</define>
<define name="data">