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

I inherited res_partner, the problem is that I would like to change the translation of a single word. In Italian the word "name" is translated as "nome" but also the word "first name" translates as "nome". what I would like to do is change the translation of res_partner to change the "name" (first name + last name) to "Full name". How can I do?

الصورة الرمزية
إهمال
أفضل إجابة

Hi,

1. Export the translation file from the addons you want to override.
2. Translate it using POEeit or similar.
3. Drop the translation file inside a i18n_extra folder in the addon. E.g.: addon/i18n_extra/fr.pot

4. Update the addon.

With that system, a sub-module is able to override translations from parent modules.

Hope it helps

الصورة الرمزية
إهمال
أفضل إجابة

Let me know if the solution given by @cybrosis works for u.

الصورة الرمزية
إهمال
الكاتب

Added the solution

الكاتب أفضل إجابة

My solution:

I have added the string from inherit model on my .po file

#: model:ir.model.fields,field_description:base.field_res_partner__name

Now I see correctly

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مارس 15
6108
2
يونيو 23
5474
2
أغسطس 25
2369
1
يوليو 25
881
1
أغسطس 25
1151