Hi
I am in Odoo 12 as an admin user and I want to restrict a user from access to a specific view of a model. For example I'm going to restrict user named Sina to see tree view of res.partner model. I went to Technical Settings > User Interface > Views and find the view named "res.partner.tree". Then in the "Access Rights" tab added a group which user Sina is a member of that. But this restriction doesn't work and when I login by Sina I can see any view I want. What is the problem?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Hi Sina,
If you add the group of that particular user in the Groups of the view, then it won't hide the view from that user. Try unlinking the group from that view using code. Then it won't reset when you upgrade base modules.
<record id="original_module.view_id" model="ir.ui.view">
<field name="groups_id" eval="[(3,ref('your_group_id'))]"/>
</record>
Hi @Bassam and thank you for your answer,
But the problem is when someone as an admin user wants to give or restrict access to a specific view of a model for a user only by ui, what should he/she do?
If there is no such ability, what is the function of "Technical Settings > User Interface > Views" and access rights there?
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
2
thg 7 22
|
6937 | ||
|
3
thg 9 21
|
10079 | ||
|
4
thg 6 21
|
6065 | ||
|
1
thg 8 24
|
1842 | ||
Prevent Deletion
Đã xử lý
|
|
2
thg 5 24
|
2480 |