Skip to Content
Menu
This question has been flagged
2 Replies
1835 Views

hey, all

I want to ask, this is me setting permissions and security on the custom module I created, but I have an error? Like what is the correct security setting on the ir.model.access.csv file so that I can read data from the module's cost using xmlrpc.client

Exception: Payroll-bsd module installation failed: payroll-bsdsecurity/ir.model.access.csv file could not be processed: No matching record found for external id 'model_payroll-bsd_payroll-bsd' in field 'Model' No matching record found for external id 'payroll_insentif_thr.group_user' in field 'Group' No matching record found for external id 'payroll_transport.group_payroll_transport_user' in field 'Group'

Less value required for 'Model' field (model_id)

Avatar
Discard
Best Answer

Hi,
The error is related to the model named: payroll-bsd_payroll-bsd


If you have defined the model payroll-bsd_payroll-bsd inside the same module, then in the access rights column in the csv file, you can give its id as model_{model_name} , this is generic syntax and if my model name is sale.order, we have to give model_sale_order and in your case it will be model_payroll-bsd_payroll-bsd

As there is mixed usage of underscore and hiphens in your model name, just ensure it is used and placed correctly.

And if the model that you are looking is not defined in the same module, use external id of the model, for example if the model payroll-bsd_payroll-bsd is defined in a module named custom_payroll then its external id will be custom_payroll.payroll-bsd_payroll-bsd  , this you can give inside the model column and in the depends add the module custom_payroll in the manifest.


Thanks

Avatar
Discard
Best Answer

Hi,
The errors in the 'ir.model.access.csv' file suggest that there are issues with references to models and groups, either through missing or incorrect entries. Please check with the external ID 'model_payroll-bsd_payroll-bsd' to make sure it corresponds to a valid model in your module. The error was occurring that 'model_payroll-bsd_payroll-bsd' is not defined in your module, so check with the model name. Also, check with the groups mentioned in the 'ir.model.access.csv' filereferences an existing group in your module.
Check the external IDs 'payroll_insentif_thr.group_user' in module payroll_insentif_thr, and 'payroll_transport.group_payroll_transport_user' in the module to 'payroll_transport' and make sure they correspond to valid groups in your module.


Hope it helps

Avatar
Discard
Related Posts Replies Views Activity
2
Feb 24
1384
2
Mar 25
5635
1
Jul 24
1601
1
Jan 24
4498
2
Mar 23
2425