跳至内容
菜单
此问题已终结
2 回复
1477 查看

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!

形象
丢弃
最佳答案

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. 

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
1
11月 24
723
0
9月 24
786
0
5月 24
722
1
6月 24
1361
0
2月 24
14