diff --git a/CHANGELOG b/CHANGELOG index 56e38b1a2c..f3bcbc9f3a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,4 @@ +* Replace child{1,2} attributes in xml views by a unique child * Models that uses _inherits will search in inherited parents for missing functions * Remove ids from on_change* calls * Improve search on translatable fields diff --git a/trytond/ir/ui/board.rnc b/trytond/ir/ui/board.rnc index 86dc2cb72b..7ddc22e518 100644 --- a/trytond/ir/ui/board.rnc +++ b/trytond/ir/ui/board.rnc @@ -96,30 +96,16 @@ attlist.group &= [ a:defaultValue = "1" ] attribute rowspan { text }? attlist.group &= [ a:defaultValue = "4" ] attribute col { text }? attlist.group &= attribute id { text } -hpaned = element hpaned { attlist.paned, child1?, child2? } +hpaned = element hpaned { attlist.paned, child* } -vpaned = element vpaned { attlist.paned, child1?, child2? } +vpaned = element vpaned { attlist.paned, child* } attlist.paned &= [ a:defaultValue = "4" ] attribute colspan { text }? attlist.paned &= attribute position { text }? attlist.paned &= attribute id { text } -child1 = - element child1 { - attlist.child, - (image - | separator - | label - | newline - | notebook - | group - | hpaned - | vpaned - | action)* - } - -child2 = - element child2 { +child = + element child { attlist.child, (image | separator @@ -148,8 +134,7 @@ xpath = element xpath { attlist.xpath, | vpaned | action | page - | child1 - | child2 + | child | board )* } diff --git a/trytond/ir/ui/board.rng b/trytond/ir/ui/board.rng index f66f7bd0c7..066ddca0ac 100644 --- a/trytond/ir/ui/board.rng +++ b/trytond/ir/ui/board.rng @@ -343,23 +343,17 @@ - - - - - - + + + - - - - - - + + + @@ -375,26 +369,8 @@ - - - - - - - - - - - - - - - - - - - - + + @@ -440,8 +416,7 @@ - - + diff --git a/trytond/ir/ui/form.rnc b/trytond/ir/ui/form.rnc index 5b70057c80..a9f350105a 100644 --- a/trytond/ir/ui/form.rnc +++ b/trytond/ir/ui/form.rnc @@ -207,31 +207,16 @@ attlist.group &= [ a:defaultValue = "1" ] attribute rowspan { text }? attlist.group &= [ a:defaultValue = "4" ] attribute col { text }? attlist.group &= ( attribute name { text } | attribute id { text } ) -hpaned = element hpaned { attlist.paned, child1?, child2? } +hpaned = element hpaned { attlist.paned, child* } -vpaned = element vpaned { attlist.paned, child1?, child2? } +vpaned = element vpaned { attlist.paned, child* } attlist.paned &= [ a:defaultValue = "4" ] attribute colspan { text }? attlist.paned &= attribute position { text }? attlist.paned &= attribute id { text } -child1 = - element child1 { - attlist.child, - (label - | field - | image - | separator - | newline - | button - | notebook - | group - | hpaned - | vpaned)* - } - -child2 = - element child2 { +child = + element child { attlist.child, (label | field @@ -267,8 +252,7 @@ xpath = element xpath { attlist.xpath, | x | y | page - | child1 - | child2)* + | child)* } attlist.xpath &= attribute expr { text } attlist.xpath &= diff --git a/trytond/ir/ui/form.rng b/trytond/ir/ui/form.rng index c0c86cfeb7..9e1ea62f88 100644 --- a/trytond/ir/ui/form.rng +++ b/trytond/ir/ui/form.rng @@ -745,23 +745,17 @@ - - - - - - + + + - - - - - - + + + @@ -777,27 +771,8 @@ - - - - - - - - - - - - - - - - - - - - - + + @@ -850,8 +825,7 @@ - - +