콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
29054 화면

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
611
2
6월 25
2849
0
9월 19
3205
2
3월 19
8551
3
11월 22
12636