Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
3438 Ansichten

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
Verwerfen
Beste Antwort

Hi Justin,

   

_inherit= "res.partner"

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


Hope it helps

Avatar
Verwerfen
Autor Beste Antwort

Thank you!

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
5
Sept. 20
4983
2
Aug. 23
14639
1
Jan. 22
2712
5
Sept. 20
5066
1
Juni 16
10143