Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

New Odoo17 translated fields

by
johan
- 01/02/2024 12:47:51

Dears,

 

Knows someone good developer documentation around the new translated fields in Odoo17 ? That there are stored in de database as jsonB field is clear. But I see nowhere how to set de translated terms for a field in a python method ( an on change or depends structure for ex. ). There must normally be a some variables where the translation are stored till the create method creates the model ? But I see nothing there.

I want to use a python translation package ( deepL, deep-translator ) to give a first translation automatically when the translatable field is typed in the ID. Users can adapt, if they want to, but mostly, these translation are simply good -)

 

Thanks for helping me out.

 

With kind regards,

 

 

Van Hirtum Johan

Reference