In the Website module, I need to display links only if the user does not belong to the helpdesk administrator group. How can I achieve this?
Example:
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
In the Website module, I need to display links only if the user does not belong to the helpdesk administrator group. How can I achieve this?
Example:
Hi
To display links only if the user does not belong to the helpdesk administrator group in the Website module, you can use the following code:
```
<t t-if="not request.env.user.has_group('
<!-- Your link code here -->
</t>
```
This code uses a template condition (`<t t-if>`) to check if the current user does not have the helpdesk administrator group (`'helpdesk.helpdesk_admin_
Please note that you need to replace `'helpdesk.helpdesk_admin_
Hope it helps
Create an account today to enjoy exclusive features and engage with our awesome community!
Tilmeld digRelated Posts | Besvarelser | Visninger | Aktivitet | |
---|---|---|---|---|
|
1
mar. 23
|
3514 | ||
|
3
aug. 25
|
2545 | ||
|
1
maj 25
|
2602 | ||
|
1
apr. 25
|
3576 | ||
|
1
apr. 25
|
4431 |