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

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

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
1
3月 15
4262
0
6月 25
417
0
1月 25
1553
0
1月 25
1572
1
12月 24
2084