On 17/10/13 09:30 +0200, Raimon Esteve wrote:
> Hello dev,
> 
> I'm working a translation filter in Nereid (1). First I develop how to
> get a value from selection field but "key,value" from selection field
> not always coincide to find in ir.translation
> 
> Example:
> 
> >>> print invoice.type
> >>> in_invoice
> 
> In this case print key from option selection field, but I like to
> print value option selection field: Supplier Invoice
> 
> >>> print invoice.type
> >>> Supplier Invoice
> 
> Could somebody how to get value from option selection field and not
> key? (I think is Transaction is other language -not English-, I get
> value option translated field)

For static view, you just have to do like in report, put the string in
the view and let the translation view mechanism working.
If you want to display a field than you have to use the Model.fields_get

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpx5NPvZyxzN.pgp
Description: PGP signature

Reply via email to