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
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
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
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
5
gen 22
|
11541 | ||
|
3
mar 15
|
4371 | ||
|
1
mag 24
|
2028 | ||
|
0
ago 23
|
2113 | ||
|
0
giu 20
|
2453 |