Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
1229 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Juni 21
2809
2
März 18
7990
3
Dez. 24
13489
11
Aug. 24
12974
1
Juli 24
1973