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

I receive the following error when I try to install my new application 

Erreur de serveur Odoo

RPC_ERROR

Odoo Server Error

Occured on localhost:8069 on model ir.module.module and id 9 on 2025-02-26 14:53:09 GMT


contents of the file below

id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink

access_payment_provider,access_payment_provider,model_payment_provider,,1,1,1,1

아바타
취소
베스트 답변

Hii,

update your csv fie and add that

id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink


access_payment_provider_user,access_payment_provider_user,model_payment_provider,base.group_user,1,1,1,1


i hope it is usefull

아바타
취소
베스트 답변

Hi,

If you want to assign model access rights to a specific group, you must include the group_id:id column in the CSV and assign it a proper external ID of the group.

id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink

access_payment_provider,access_payment_provider,model_payment_provider,my_module.group_payment_manager,1,1,1,1


For more details, please refer to the following links:

1. https://www.odoo.com/documentation/18.0/developer/tutorials/server_framework_101/04_securityintro.html

2. https://www.cybrosys.com/blog/how-to-create-security-group-and-manage-access-rights-in-odoo-17


Hope it helps.

아바타
취소
베스트 답변

Update ir.model.access.csv:


id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink access_payment_provider,access_payment_provider,your_module.model_payment_provider,base.group_user,1,1,1,1

Make sure your model payment.provider exists in models.py.

Restart Odoo and upgrade your module.

아바타
취소
베스트 답변

Your csv doesn't have proper content. I'd recommend you open it with LibreCalc to make sure all data are correct and not a comma or sometime space are redundant.
In your case, at least the group_id is issming, maybe you need a base.group_user or something there, not an empty value.

| id                    | name                    | model_id:id          | group_id:id | perm_read | perm_write | perm_create | perm_unlink |

|-----------------------|-------------------------|----------------------|-------------|-----------|-------------|-------------|-------------|

| access_payment_provider | access_payment_provider | model_payment_provider |             | 1         | 1           | 1           | 1           |


아바타
취소
관련 게시물 답글 화면 활동
1
6월 25
822
1
5월 25
784
1
5월 25
926
1
4월 25
1368
1
5월 25
951