Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
1015 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
maalisk. 15
4267
0
kesäk. 25
417
0
tammik. 25
1555
0
tammik. 25
1573
1
jouluk. 24
2090