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)

Example:

>>> print invoice.type
>>> Factura de client

(1) 
https://github.com/raimonesteve/nereid/commit/c2e11ef4ad8e0b0e03e27681574aa4720a8ddebc

Raimon

Reply via email to