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

How can I have permission to delete records in a model with a user that is not the administrator in Odoo 16?

I created a user and gave permission to a group that has the permission to delete records in a model, and when I try to delete a record from this model, it gives me a permission error.  

Ảnh đại diện
Huỷ bỏ
Tác giả

It no longer works like that in Odoo16, you can try it.

can you specify which is your model ?

Tác giả Câu trả lời hay nhất

It is a custom model that I created myself. When I access Odoo with a user that is not the administrator, but this user has permission to a group that I configured with the permission to delete in this model, it still does not allow me to delete.

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

Hi,

Follow this documentations it shows how to set access rights in odoo

https://www.odoo.com/documentation/16.0/applications/general/users/access_rights.html

Hope it helps

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

Hi 

Update the access right in csv file as follows


id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_name
,access.name,model_namet,module_name.group_name,1,0,0,1


https://www.odoo.com/forum/help-1/how-set-delete-permission-based-on-user-groups-in-odoo-120842

Regards

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