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

exception: Module loading Raihan_purchase failed: file Raihan_purchase\security/ir.model.access.csv could not be processed: No matching record found for external id 'model_Raihan_purchase' in field 'Model'Missing required value for the field 'Model' (model_id)


I already double check if there is any typo but it still doesn't work


CSV file is:

id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_Raihan_purchase,access_Raihan_purchase,model_Raihan_purchase,,1,1,1,1


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

To Anyone in the reply, where to put the module_name.model_Raihan_Purchase? because it is still not working with the service restart

Ảnh đại diện
Huỷ bỏ

if the model Raihan.Purchase is in different module then only you need to put that module_name.model_Raihan_Purchase

Câu trả lời hay nhất

Hi

This error shows that the module can't find the model_raihan_purchase. Make sure that the Python file is loaded in __init__.py file of models folder and that models folder is loaded in main __init__ py file of the Module 

If the model is defined in a different module, you have to give a full external ID of the model, suppose this model is defined or added from another module, then the full external ID will be module_name.model_Raihan_Purchase

also, make sure that the service is restarted.


Regards



Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 5 24
2556
1
thg 7 23
7771
1
thg 6 21
7658
3
thg 7 18
4485
0
thg 4 15
3142