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
3372 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
4916
2
sie 23
14543
1
sty 22
2672
5
wrz 20
4995
1
cze 16
10105