Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1194 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
giu 21
2781
2
mar 18
7949
3
dic 24
13463
11
ago 24
12904
1
lug 24
1946