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

We have our odoo running as saas, so no access to code, logs or whatever. So in settings->Technical->Database Structures->models I created a model  x_test. Now in res.partner model i created a new custom field with Field Type = many2one and Object Relation = x_test.

But it does not work, I always have the error no reference in found in x_test. Can someone help on this? I am not sure about the models, in x_test i created a field x_id of type integer. But maby it is looking for field "id"?

With existing tables it works, but not with custum models.

Thanks.


 

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

Hi Actually it will work for custom module also...

and u need not add id field in your custome model (x_test)... try adding a "x_name" field... I have tried and it works for me.. guess you are missing something ..

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

Hello,

Strange indeed it works fine today, I tried like for 4houres yesterday and search for answers on internet and documentation. Found nothing, today i do the same and it works. Very frustrating.

Anyway thanks for your time.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 21
4826
0
thg 3 15
3665
2
thg 2 25
5948
1
thg 12 24
1485
0
thg 12 24
1437