diff --git a/doc/topics/views/index.rst b/doc/topics/views/index.rst index c1837c95b9..b62ad80108 100644 --- a/doc/topics/views/index.rst +++ b/doc/topics/views/index.rst @@ -191,6 +191,8 @@ Display a field of the object with the value of the current record. * ``name``: The name of the field. + * ``string``: The string that will be displayed for the widget. + * ``widget``: The widget that must be used instead of the default one. * ``help``: The string that will be displayed when the cursor stays over the diff --git a/trytond/ir/ui/form.rnc b/trytond/ir/ui/form.rnc index d6375770b6..628a763e46 100644 --- a/trytond/ir/ui/form.rnc +++ b/trytond/ir/ui/form.rnc @@ -104,6 +104,7 @@ attlist.field &= attlist.field &= [a:defaultValue = "0"] attribute pre_validate { "0" | "1" }? attlist.field &= attribute icon { text }? attlist.field &= [a:defaultValue = "1"] attribute completion { "0" | "1" }? +attlist.field &= attribute string { text }? image = element image { attlist.image, empty } attlist.image &= attribute name { text } attlist.image &= [ a:defaultValue = "1" ] attribute colspan { text }? diff --git a/trytond/ir/ui/form.rng b/trytond/ir/ui/form.rng index 6d2b947798..22f9375885 100644 --- a/trytond/ir/ui/form.rng +++ b/trytond/ir/ui/form.rng @@ -379,6 +379,11 @@ + + + + +