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

When an Access Control List denies write access, the "Edit" button is automatically removed from the form view. However, if the access is denied by a record rule, the "Edit" button is still there.

Any hints on how to remove the Edit button when a record rule denies the access?

(Some users does have write access, so I can't just disable it for all users).

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

I have the same problem.

An Access rights row gives write access on a model (res_partner for instance), then the edit button appears on all records and I can edit and save any res_partner records.

Then I add an record rule that restricts access to some records only. The rule works because when I try to save the other records the "The requested operation cannot be completed due to security restrictions" error appears, but the useless and misleading Edit button still appears on all res_partner records. Why?

How to show or enable the Edit button only on records with write access rights?

Thanks

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 6 23
1862
2
thg 1 24
3208
0
thg 1 24
1548
0
thg 7 23
4
1
thg 3 24
9025