Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
1009 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
mar. 15
4266
0
jun. 25
417
0
jan. 25
1554
0
jan. 25
1573
1
dez. 24
2089