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

Hello,

I'm looking to add many2one field called  "hr.institute" but I couln't find any specific place to add this, So can anyone help me, Thankx.

頭像
捨棄
最佳答案

Madura,

You should first design a model(class) with its _columns. Only then, The class/model will be used as a many2one.

In your case, you should make sure to have hr.institude defined first. Later on, your new class can have many2one in this fashion:

'institute_id': fields.many2one('hr.institute', 'Institute')

Thanks.

頭像
捨棄

Hello, Thank You for thew help. but I couldn't find the place where I need to add this call, So could You please help me to achieve this? Thank You.

You should add in your module!

相關帖文 回覆 瀏覽次數 活動
2
4月 24
7094
2
3月 24
1730
2
8月 23
2582
1
7月 19
19788
1
11月 16
8492