Reviewers: ,
Please review this at http://codereview.tryton.org/605003/
Affected files:
M trytond/ir/ui/form.rnc
M trytond/ir/ui/form.rng
M trytond/ir/view/rule_group_form.xml
Index: trytond/ir/ui/form.rnc
===================================================================
--- a/trytond/ir/ui/form.rnc
+++ b/trytond/ir/ui/form.rnc
@@ -192,6 +192,7 @@
attlist.group &= [ a:defaultValue = "4" ] attribute col { text }?
attlist.group &= ( attribute name { text } | attribute id { text } )
attlist.group &= attribute states { text }?
+attlist.group &= [ a:defaultValue = "0" ] attribute homogeneous { "0"
| "1" }?
hpaned = element hpaned { attlist.paned, child* }
Index: trytond/ir/ui/form.rng
===================================================================
--- a/trytond/ir/ui/form.rng
+++ b/trytond/ir/ui/form.rng
@@ -721,6 +721,16 @@
<attribute name="states"/>
</optional>
</define>
+ <define name="attlist.group" combine="interleave">
+ <optional>
+ <attribute name="homogeneous" a:defaultValue="0">
+ <choice>
+ <value>0</value>
+ <value>1</value>
+ </choice>
+ </attribute>
+ </optional>
+ </define>
<define name="hpaned">
<element name="hpaned">
<ref name="attlist.paned"/>
Index: trytond/ir/view/rule_group_form.xml
===================================================================
--- a/trytond/ir/view/rule_group_form.xml
+++ b/trytond/ir/view/rule_group_form.xml
@@ -8,7 +8,7 @@
<field name="global_p"/>
<label name="default_p"/>
<field name="default_p"/>
- <group col="4" colspan="6" id="perm">
+ <group col="4" colspan="6" id="perm" homogeneous="1">
<label name="perm_read"/>
<field name="perm_read"/>
<label name="perm_write"/>
--
--
[email protected] mailing list