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

Hi everyone,


I would like to change the radio selections in the contact form from "individual" and "company" to student and parent for example. 

I am familiar with _inherit and xpath. 

however I cannot find the correct xpath structure to rename these radio selections.

any help would be appreciated


J

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

Hi Justin,

   

_inherit= "res.partner"

    company_type = fields.Selection(selection=[('person', 'Child'),('company', 'Parent')])


Hope it helps

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

Thank you!

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
5
سبتمبر 20
4916
2
أغسطس 23
14539
1
يناير 22
2672
5
سبتمبر 20
4994
1
يونيو 16
10105