Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1279 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
user creation Rozwiązane
1
cze 21
2844
2
mar 18
8060
3
gru 24
13593
11
sie 24
13095
1
lip 24
2034