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

I have inherited a model and also in python file i have put _name and named it as some xyz. I know now odoo creates a table named xyz but then later on i put comment on this _name line and when i try to upgrade the app it throws me an error saying KeyError: and the name of the model. Also I've checked and there is no data regarding to this model in the ir_model_data table as well but then why is this error showing up?

形象
丢弃

Try this solution, comment the _name from the model and uninstall the module, then comment the _name and install it again and see whether you are getting the error or not

编写者

Thanks, that worked! Had some issues while re-installation but i dealt with them. Thanks for your prompt answer :)

编写者 最佳答案

The problem was in security folder under ir.model.access.csv file, access rules were defined to the model that i was trying to comment so odoo throwed me with bunch of errors. I know It's a rookie mistake.

形象
丢弃

Hello, Can you tell me how did you fix the problem with the security folder under ir.model.access.csv, please !!

相关帖文 回复 查看 活动
2
6月 25
745
2
6月 25
2978
0
9月 19
3240
2
3月 19
8652
3
11月 22
12726