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.
This question has been flagged
1
Odpovědět
2287
Zobrazení
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit se| Related Posts | Odpovědi | Zobrazení | Aktivita | |
|---|---|---|---|---|
|
user creation
Vyřešeno
|
|
1
čvn 21
|
3954 | |
|
|
2
bře 18
|
9573 | ||
|
|
3
pro 24
|
15518 | ||
|
Disable new user sign-up
Vyřešeno
|
|
11
srp 24
|
15965 | |
|
|
1
čvc 24
|
3223 |