for example.some snippet content in website should only visible for portal user only after login.other content should be public,and other should be only for admin user
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
Hi,
You could check the group of the user logged in in the snippet block.
Eg:
<t t-snippet=“module_name.snippet_template_name”
t-if=“request.env.user.has_group(‘base.group_portal’)” t-thumbnail=“thumbnail image link”/>
The above snippet block will only be available for portal user.
<t t-snippet=“module_name.snippet_template_name”
t-if=“request.env.user.has_group(‘base.user_admin’)” t-thumbnail=“thumbnail image link”/>
The above snippet block will be available for admin user
Regards
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
5
Jan 22
|
10130 | ||
|
3
Mar 15
|
3246 | ||
|
1
May 24
|
952 | ||
|
0
Aug 23
|
889 | ||
|
0
Jun 20
|
1644 |