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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
2
ตอบกลับ
28193
มุมมอง
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 !!
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
0
เม.ย. 16
|
2328 | ||
|
0
ก.ย. 19
|
2892 | ||
|
2
มี.ค. 19
|
8134 | ||
|
3
พ.ย. 22
|
12139 | ||
|
0
ม.ค. 21
|
2680 |
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 :)