Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2082 Переглядів

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


Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
січ. 23
3396
0
бер. 23
2264
1
трав. 25
2402
1
квіт. 25
3425
1
квіт. 25
4243