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

Hi everyone,

I'm working on a project in Odoo 15 and I keep getting this error message:

You are not allowed to access 'System Parameter' (ir.config_parameter) records. This operation is allowed for the following groups: Administration/Settings. Contact your administrator to request access if necessary."

I believe the error is related to this custom line of code:

enable_unifaun = self.env['ir.config_parameter'].sudo().get_param('tnp.enable_auto_confirm_unifaun')

From what I understand, the current user is not in the 'Administration/Settings' group, which is why the error message is appearing. User with admin right can access that normally.

I'm wondering if anyone has experienced this issue before and could offer some guidance on how to resolve it. Also, I thought that with sudo(), you can bypass any access rights?

Any help or advice would be greatly appreciated. Thanks in advance!

아바타
취소

You are not allowed to access 'System Parameter' (ir.config_parameter) records.

This operation is allowed for the following groups:
- Administration/Settings

Contact your administrator to request access if necessary.
help how to solve

작성자 베스트 답변

Hi,

I added to all possible places, but this error still shows up. Could this be related to access rights or anything?

BR,

Daniel

아바타
취소
베스트 답변

Hi,

Can you confirm that whether it still happens after adding the sudo ? When the sudo is added it has to bypass the access right, may be you missed to restart the odoo service after adding the sudo ?


Thanks & Regards

Walnut Software Solutions

아바타
취소
관련 게시물 답글 화면 활동
1
7월 23
3005
1
12월 22
6460
2
6월 22
4996
1
5월 22
3030
2
3월 22
4836