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

Even though field is correctly defined in the python model and even the field is reflecting in the database but getting this error only in the frontend 

How to troubleshoot this, Please help!

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

You should carefully check your code and all custom addons that you are loading. Make sure that the same model is not defined more than once with the same name.

If you find multiple definitions of the same model, rename them to avoid conflicts. Right now, the issue is likely caused by having two or more models with the same name. As a result, Odoo is unable to find the field — because the last loaded model might be missing it the field. 

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

My issue was that the previous Python process was not terminated correctly. Somehow, I had two processes listening on the same port (lsof -i :8069), and my frontend was served by the old one. I terminated the process (kill <process id>) and everything works now

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 24
1203
0
thg 9 24
1220
0
thg 5 24
1184
1
thg 6 24
1823
0
thg 2 24
14