Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3504 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

Hi Justin,

   

_inherit= "res.partner"

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


Hope it helps

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Thank you!

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
5
wrz 20
5066
2
sie 23
14836
1
sty 22
2801
5
wrz 20
5152
1
cze 16
10195