Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
1232 Vues

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.

Avatar
Ignorer
Meilleure réponse

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.

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
juin 21
2811
2
mars 18
7991
3
déc. 24
13520
11
août 24
12978
1
juil. 24
1973