Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
3429 Näkymät

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
Hylkää
Paras vastaus

Hi Justin,

   

_inherit= "res.partner"

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


Hope it helps

Avatar
Hylkää
Tekijä Paras vastaus

Thank you!

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
5
syysk. 20
4977
2
elok. 23
14618
1
tammik. 22
2705
5
syysk. 20
5048
1
kesäk. 16
10138