콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
2080 화면

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
2월 24
1574
2
3월 25
5874
1
7월 24
1780
1
1월 24
4840
2
3월 23
2619