Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
1014 Prikazi

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

Avatar
Opusti
Best Answer

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
mar. 15
4267
0
jun. 25
417
0
jan. 25
1555
0
jan. 25
1573
1
dec. 24
2090