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

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.

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

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
user creation Đã xử lý
1
thg 6 21
2754
2
thg 3 18
7909
3
thg 12 24
13437
11
thg 8 24
12843
1
thg 7 24
1921