跳至內容
選單
此問題已被標幟
2 回覆
3380 瀏覽次數

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
4918
2
8月 23
14550
1
1月 22
2675
5
9月 20
5005
1
6月 16
10114