跳至内容
菜单
此问题已终结
1 回复
6810 查看

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
6275
2
12月 23
14737
0
10月 23
33
3
10月 23
788
1
10月 23
569