Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2083 Lượt xem

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


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 23
3396
0
thg 3 23
2268
1
thg 5 25
2404
1
thg 4 25
3425
1
thg 4 25
4243