تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2095 أدوات العرض

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
يناير 23
3403
0
مارس 23
2272
1
مايو 25
2415
1
أبريل 25
3433
1
أبريل 25
4254