Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2446 Zobrazení

Since odoo 16 the concept of translation has changed,

If I have a new model:


class TestModel(models.Model):
_name = "test.model"

name = fields.Char('Field Name', required=True, translate=True)

And I want to make some entries via the data file:






test_1


test_2




The question now is, how insert the translation terms directly through the data file if I have for example English and French?


I tried this format, but it's not rendered to jsonb



{"en_US": "test_1_fr", "fr_FR": "test_1_en"}


Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
led 23
3767
0
bře 23
2546
5
zář 25
20957
3
srp 25
3015
1
kvě 25
2896