Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
9141 Tampilan

Is there a way to limit the access to a product for a special user group?

E.g. I want a user only to see products which are "allowed" to him.

Avatar
Buang

Hi,


Can you share your solution?


Regards

Jawaban Terbai

Step 1 - Create  a new product category 

Step 2 - put the products you do not want other user to see in to a category

Step 3 - create a filter which excludes the product category and save it

step 4 - go to user defined filter and find the filter name you just saves and copy the domain from there

Step 5 - now to record rules and create a new record and paste the domain under rule definition (domain filter)

and also add the user type in the group names line you want to exclude and save it.

Now you will see users under those group cannot view the products under that product category.

ps- if you want to give access to a user of the same group then just go to settings>>user>>user name >>record rules >> select the rule >> archive it. By this method you can actually control the views and access right

 I hope it helps . Thank you

Srijita Banerjee

Jr. Odoo Consultant

Tel: +353 1 886 5684 (IE) +44 121 285 5684 (UK)  +91 964 381 7554 (IN)

 

Target Integration | CRM ERP Cloud

Website | LinkedIn | Twitter | Facebook | YouTube | Instagram

Avatar
Buang

Thanks Srijita; this one inspired me to create a similar solution for quite the same problem.

Hello Srijita. Thank you for this detailed explanation. I'm wondering, can we set this up on ecommerce with odoo online version 17? I'd like to avoid switching to odoo SH.

@benoit, yes you can. This is possible from developer mode.

Jawaban Terbai

Hi,

You can create record rules on product object on "Product Manager" field.

Email : info@acespritech.com
Skype : acespritech
Blog : acespritechblog.wordpress.com

Avatar
Buang
Penulis

Please, can you explain more in detail?

Post Terkait Replies Tampilan Aktivitas
1
Jan 25
5927
0
Jul 17
2621
1
Jun 24
1266
5
Sep 21
6869
2
Jun 21
6262