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

I deleted my module and reinstalled it but it gives me this error :

Exception: Module loading food failed: file food\security/ir.model.access.csv could not be processed
No matching record found for external id 'foods_group_admin' in field 'Group'

No matching record found for external id 'foods_group_admin' in field 'Group'

No matching record found for external id 'foods_group_admin' in field 'Group'

No matching record found for external id 'foods_group_admin' in field 'Group'

No matching record found for external id 'foods_group_admin' in field 'Group'

No matching record found for external id 'foods_group_user' in field 'Group'

No matching record found for external id 'foods_group_user' in field 'Group'

No matching record found for external id 'foods_group_user' in field 'Group'

No matching record found for external id 'foods_group_user' in field 'Group'

No matching record found for external id 'foods_group_user' in field 'Group

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

Hi,The error you’re encountering typically occurs when the module’s access control file (ir.model.access.csv) references groups that do not exist in the database. Please ensure that the groups foods_group_admin and foods_group_user are defined in your module. They should be declared in a security.xml file or similar file within the security directory, which must be included in the manifest file (__manifest__.py).


Also, please make sure that the security.xml file is listed before the ir.model.access.csv file in the manifest to ensure that the group definitions are processed first.

Hope it helps

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 15
4268
0
thg 6 25
417
0
thg 1 25
1555
0
thg 1 25
1573
1
thg 12 24
2090