From 26eb243b63544cc98e1c9cae5bed3efbe379a04e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Thu, 21 Mar 2013 13:51:04 +0100 Subject: [PATCH] Allow to override string of fields review597005 --- doc/topics/views/index.rst | 2 ++ trytond/ir/ui/form.rnc | 1 + trytond/ir/ui/form.rng | 5 +++++ 3 files changed, 8 insertions(+) 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 @@ + + + + +