Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1198 มุมมอง

I wanted to hide products from all customer. But the one who has specific tag added to them can access products and buy them.

What would be the best approach to move forward with it.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi Terry Arsenault,

You need to add many2many field in res.users model with relation of your tags.

And then inside this both model product.template and product.product Overide search_read orm method and based handle condition look like this way.

Thanks.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
user creation แก้ไขแล้ว
1
มิ.ย. 21
2783
2
มี.ค. 18
7951
3
ธ.ค. 24
13465
Disable new user sign-up แก้ไขแล้ว
11
ส.ค. 24
12908
1
ก.ค. 24
1946