تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
2044 أدوات العرض

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)

الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
فبراير 24
1554
2
مارس 25
5857
1
يوليو 24
1764
1
يناير 24
4805
2
مارس 23
2599