Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
3436 Visninger

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
Kassér
Bedste svar

Hi Justin,

   

_inherit= "res.partner"

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


Hope it helps

Avatar
Kassér
Forfatter Bedste svar

Thank you!

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
5
sep. 20
4981
2
aug. 23
14633
1
jan. 22
2711
5
sep. 20
5063
1
jun. 16
10143