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.
Esta pergunta foi sinalizada
1
Responder
2278
Visualizações
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.
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscrever-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
user creation
Resolvido
|
|
1
jun. 21
|
3942 | |
|
|
2
mar. 18
|
9564 | ||
|
|
3
dez. 24
|
15514 | ||
|
Disable new user sign-up
Resolvido
|
|
11
ago. 24
|
15953 | |
|
|
1
jul. 24
|
3216 |