I want to hide my events page to only people who are portal and internal users. how can i do this.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- सीआरएम
- e-Commerce
- लेखांकन
- इन्वेंटरी
- PoS
- Project
- MRP
This question has been flagged
Hi,
The function shown below can be used to hide menus on websites:
def _compute_visible(self):
super()._compute_visible()
self.env.registry.clear_cache('templates')
for menu in self:
visible = True
if menu.name == 'Events': # Assuming 'Events' is the name of your events page menu
if self.env.user.has_group('base.group_portal') or not self.env.user.share:
visible = False
menu.is_visible = visible
Hope it helps
Thanks. Does this work on the odoo online version
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 | |
---|---|---|---|---|
|
0
अक्तू॰ 24
|
1596 | ||
|
0
मई 24
|
3079 | ||
|
3
मार्च 15
|
9105 | ||
|
4
मई 25
|
2781 | ||
|
0
अग॰ 24
|
1003 |