Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
5828 Lượt xem

Odoo Warning - Access ErrorSorry, you are not allowed to access this document. Please contact your system administrator if you think this is an error.

(Document model: market.process)OK

Ảnh đại diện
Huỷ bỏ

How to use ACL in odoo.

The most significant area in Odoo/OpenERP is how to deal or manage users. Managing users and assigning groups or role is the key point in every business. In Odoo/OpenERP assigning role or group to the single user is made through Administrator. And its not a good practice to do so using login through admin and do some setting stuff like assigning groups to employee or users.

http://learnopenerp.blogspot.com/2018/01/groups-and-access-rights-in-odoo.html

Câu trả lời hay nhất

You have to give access right for this model 'market.process' for the logged in user group
for eg:

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

access_to_market_process,access.to.market.process,module_name.model_market_proces,user_group,1,1,1,1

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

You have to provide rights for this object

like this example

<record id="id" model="ir.model.access">

<field name="name">name of objr</field>

<field name="model_id" ref="module_model_name"/>

<field name="perm_read" eval="1"/>

<field name="perm_create" eval="1"/>

<field name="perm_write" eval="1"/>

<field name="perm_unlink" eval="1"/>

</record>


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Yeah, you just simply need to provide the security rules for your model. Any above answers should work fine. 

P.S. Just trying to earn some karma, so I can ask my own question. Please, upvote 1 time <3 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Dear Aboorva,

It's Simply Access Control List  Error, For logged in user group there's no Access to read "market.process" model, 

Temporary Solution is login as admin and open application with developer mode Goto : Settings -> Security -> Access Control List -> Create , choose model as "market.process" and choose user group, provide ACL for read. then login as same usergroup you have choosen. 

Permanent Solution is Open ir.access.csv from your module security folder provide ACL as per shown below,

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

access_to_market_process,access.to.market.process,module_name.model_market_proces,user_group,1,1,1,01

If you already gave ACL for that User Group then Check Record Rules for "market.process" model.


Thank you. 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 24
20220
1
thg 9 23
3034
3
thg 5 23
5635
7
thg 4 23
49010
1
thg 12 22
7876