From 24cf7b9ff387692d117e89c1b93395ca17aa8e30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Thu, 27 Jun 2013 13:46:24 +0200 Subject: [PATCH] Allow group's table to be homogeneous review605003 --- doc/topics/views/index.rst | 2 ++ trytond/ir/ui/form.rnc | 1 + trytond/ir/ui/form.rng | 10 ++++++++++ 3 files changed, 13 insertions(+) diff --git a/doc/topics/views/index.rst b/doc/topics/views/index.rst index 424c5328f0..764b7c9868 100644 --- a/doc/topics/views/index.rst +++ b/doc/topics/views/index.rst @@ -349,6 +349,8 @@ Create a sub-table in a cell. * ``col``: The number of columns for the group contains. + * ``homogeneous``: If True all the tables cells are the same size. + * ``id``: see in common-attributes-id_. * ``yexpand``: see in common-attributes-yexpand_. diff --git a/trytond/ir/ui/form.rnc b/trytond/ir/ui/form.rnc index b7cd2ce0f0..eeff307e96 100644 --- a/trytond/ir/ui/form.rnc +++ b/trytond/ir/ui/form.rnc @@ -192,6 +192,7 @@ attlist.group &= [ a:defaultValue = "1" ] attribute rowspan { text }? 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* } diff --git a/trytond/ir/ui/form.rng b/trytond/ir/ui/form.rng index 35bfe4ed05..52149e232b 100644 --- a/trytond/ir/ui/form.rng +++ b/trytond/ir/ui/form.rng @@ -721,6 +721,16 @@ + + + + + 0 + 1 + + + +