Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2105 Vizualizări

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"}


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
ian. 23
3417
0
mar. 23
2273
1
mai 25
2433
1
apr. 25
3451
1
apr. 25
4271