2012/7/23 Cédric Krier <[email protected]>

> On 21/07/12 14:10 -0700, guly200 wrote:
> > Hello,
> > I'm scratching my head on how to print the "human readable" for a
> > selection field in a report.
> > ie if my selection field has for value [("choice_a", "this is choice
> > A"),("choice_b", "this is choice B")]
> >
> > Then in the report I only manage to print "choice_a" and not "This is
> > choice A"
> >
> > Does anyone know ?
>
> You have to test the selection field value and write the string you
> want.


I guess you could also use the selection attribute of the field object
you are trying to access. That should give you the list of tuples. But I am
not sure that it will get you the translated values.

Jean

-- 
-- 
[email protected] mailing list



Reply via email to