跳至內容
選單
此問題已被標幟
1 回覆
6796 瀏覽次數

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

頭像
捨棄
最佳答案


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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
11月 20
6261
2
12月 23
14725
0
10月 23
33
3
10月 23
788
1
10月 23
569