On Oct 17, 2013, at 1:00 PM, Raimon Esteve <
res...@zikzakmedia.com> 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
Raimon,
fields.Selection allows for translation [1]. So getting the value and displaying it should
work straight depending on the language in the context.
However, I am not sure of how to get the translated selection options. If you find a way
I think we could build a custom SelectField based on WtForms select field which handles
the selection options with translation automatically.
[1]
https://github.com/tryton/trytond/blob/develop/trytond/model/fields/selection.py#L17
Thanks & Regards
Sharoon Thomas
Openlabs Technologies & Consulting (P) Limited
w:
http://www.openlabs.co.in
m:
+1 813.793.6736 (OPEN) Extn. 200
t: @sharoonthomas
- We win when our customers win