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

I am using openerp7.

I have a task that, restricting the user to update his employee details only and not other employees.

I worked on this with following steps,

1) Giving access control, write permissions to the user belonging group

2) Adding two record rules

But the problem is system is allowing the user to see edit button of other employees & make him to go there and change data. When user clicks on save. System says "Access Denied".

Encouraging user to that save button is embarrassing for th user. We need to hide edit button at view employee page itself.

Please help.

    

 

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

Try to add new rule

[('employee_id.user_id', '=', user.id)]

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 15
4758
1
thg 8 19
4671
2
thg 3 15
5177
0
thg 3 15
3474
1
thg 8 25
3498