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.
Tämä kysymys on merkitty
1
Vastaa
2348
Näkymät
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.
Nautitko keskustelusta? Älä vain lue, vaan osallistu!
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
Rekisteröidy| Aiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
|---|---|---|---|---|
|
user creation
Ratkaistu
|
|
1
kesäk. 21
|
4023 | |
|
|
2
maalisk. 18
|
9676 | ||
|
|
3
jouluk. 24
|
15642 | ||
|
Disable new user sign-up
Ratkaistu
|
|
11
elok. 24
|
16096 | |
|
|
1
heinäk. 24
|
3342 |