Add tree_invisible attribute to button in tree view

review3041003
This commit is contained in:
Cédric Krier committed 2014-02-06 22:25:43 +01:00
1 parent ab0e242bc2
commit 29358683cd
4 files changed
+29

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
* Add tree_invisible attribute to button in tree view
* Drop support of Python 2.6
* Deprecate on_change, on_change_with, selection_change_with and autocomplete
field arguments
+16
View File
@@ -535,6 +535,22 @@ Example
<field name="sequence" tree_invisible="1"/>
</tree>
button
^^^^^^
Display a button.
* ``string``: The string that will be displayed inside the button.
* ``name``: The name of the function that will be called. The function must
have this syntax:
``button(cls, records)``
* ``confirm``: A text that will be displayed in a confirmation popup when
the button is clicked.
* ``help``: see in common-attributes-help_
Graph view
==========
+2
View File
@@ -70,6 +70,8 @@ attlist.button &=
[ a:defaultValue = "Unknown" ] attribute string { text }?
attlist.button &= attribute confirm { text }?
attlist.button &= attribute name { text }
attlist.button &=
[ a:defaultValue = "0" ] attribute tree_invisible { "0" | "1" }?
data = element data { attlist.data, xpath+ }
attlist.data &= empty
xpath = element xpath { attlist.xpath,
+10
View File
@@ -238,6 +238,16 @@
<define name="attlist.button" combine="interleave">
<attribute name="name"/>
</define>
<define name="attlist.button" combine="interleave">
<optional>
<attribute name="tree_invisible" a:defaultValue="0">
<choice>
<value>0</value>
<value>1</value>
</choice>
</attribute>
</optional>
</define>
<define name="data">
<element name="data">
<ref name="attlist.data"/>