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
| 相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
|---|---|---|---|---|
|
1
3月 23
|
4107 | |||
|
5
9月 25
|
24401 | |||
|
3
8月 25
|
3730 | |||
|
1
5月 25
|
3620 | |||
|
1
4月 25
|
4468 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.