跳至内容
菜单
此问题已终结

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


形象
丢弃
相关帖文 回复 查看 活动
1
1月 23
3391
0
3月 23
2246
1
5月 25
2376
1
4月 25
3407
1
4月 25
4212