Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sty 23
3399
0
mar 23
2271
1
maj 25
2412
1
kwi 25
3429
1
kwi 25
4249