跳至内容
菜单
此问题已终结
2 回复
3376 查看

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

形象
丢弃
最佳答案

Hi Justin,

   

_inherit= "res.partner"

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


Hope it helps

形象
丢弃
编写者 最佳答案

Thank you!

形象
丢弃
相关帖文 回复 查看 活动
5
9月 20
4917
2
8月 23
14545
1
1月 22
2674
5
9月 20
4999
1
6月 16
10105