İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
3383 Görünümler

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

Avatar
Vazgeç
En İyi Yanıt

Hi Justin,

   

_inherit= "res.partner"

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


Hope it helps

Avatar
Vazgeç
Üretici En İyi Yanıt

Thank you!

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
5
Eyl 20
4918
2
Ağu 23
14550
1
Oca 22
2675
5
Eyl 20
5006
1
Haz 16
10115