Hello Everyone!
How Can I restrict some certain users from viewing some certain contact like the ones that has "VIP" contact tags in Odoo 17?
Thanks in advance!
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,
You can achieve this by following the steps below:
- Go to Settings and enable developer mode.
- Create a new user group with the application as Other Extra Rights and provide a name for it, such as "Restrict VIP Contacts." Add the users you want to restrict to this group.
- Create a record rule with the following configuration:
- Here, Set the domain filter to: ["|", ("category_id", "not in", [1]), ("category_id", "=", [])]. Here, [1] represents the external ID of the "VIP" tag in my instance. Replace it with your specific external ID.
- Add the user group you created ("Restrict VIP Contacts") under the Group section of the record rule page.
- Select all the access rights in the record rule.
By doing this, you can restrict certain users from accessing contacts with the "VIP" tag.
Hope this helps.
Thanks.
It didn't work out for me. I followed the this process proveded here, when I log into odoo with the account I added to the group, I still see those contacts.
Hi,
Step 1: Create a Security Group
Go to Settings > Users & Companies > Groups.
Click on Create to create a new group.
Name the group, for example, "VIP Contact Access".
Add the users who should have access to VIP contacts to this group.
Step 2: Create a Record Rule
Go to Settings > Technical > Security > Record Rules.
Click on Create to create a new record rule.
1. Name: VIP Contact Restriction
2. Model: Contacts
3. Global: Uncheck this box to make the rule specific to a group.
4. Apply for: Select the security group
In the Domain field, enter the following domain.[('category_id.name', '!=', 'VIP')]
Hope it helps
Hi. So after completing these steps, how can one input a contact and apply this restriction in the Contacts app? I tried looking but could not find where to set it.
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 25
|
1023 | ||
|
1
thg 9 24
|
1559 | ||
|
0
thg 10 23
|
1855 | ||
|
2
thg 4 22
|
3349 | ||
Contacts Personal Information Page
Đã xử lý
|
|
5
thg 9 20
|
8747 |