Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
6813 Widoki

i installed odoo 12 in ununtu 18

 i created a custom module; When the normal user try to create record this access error will appears

Sorry, you are not allowed to access this document. Only users with the following access level are currently allowed to do that:
- Administration/Access Rights

(Document model: ir.rule) - (Operation: read, User: 6) 

i never used 'ir.rule' model 

record creation is permitted to only for Admin access rights

i need to create records for every logged users 

Please help me to fix this

Log :-

2019-10-21 12:29:19,276 8537 INFO test odoo.addons.base.models.ir_model: Access Denied by ACLs for operation:  read, uid: 6, model: ir.rule  

2019-10-21 12:29:19,278 8537 INFO test odoo.addons.base.models.ir_model: Access Denied by ACLs for operation: read, uid: 6, model: ir.rule

Awatar
Odrzuć
Najlepsza odpowiedź


Please go through the below link.

\https://medium.com/@reedrehg/becoming-a-superuser-in-odoo-12-0-f6fc2de3a62e

If you are aware of the Odoo 10 and below versions, you will understand this.

Apart from all of this add access rights for newly creating classes in Odoo on file ir.model.access.csv.

For example:

id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_industry_section,access_industry_section,model_industry_section,base.group_user,1,1,1,1

In your case:

id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink access_test_test,access_test_test,model_test_test,base.group_user,1,1,1,1

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lis 20
6278
2
gru 23
14739
0
paź 23
33
3
paź 23
788
1
paź 23
569