Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3762 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ

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!

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 4 24
7101
2
thg 3 24
1731
2
thg 8 23
2594
1
thg 7 19
19804
1
thg 11 16
8499