跳至內容
選單
此問題已被標幟
1 回覆
1185 瀏覽次數

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
user creation 已解決
1
6月 21
2747
2
3月 18
7891
3
12月 24
13416
11
8月 24
12803
1
7月 24
1913