[FIX] event: use groups to hide event count stat button
In order to avoid the access error when trying to view a partner form view we should hide the event count stat button for the users who don't have access to it (must be event_user or event_manager to read this field). Closes #25225
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
<button class="oe_stat_button"
|
||||
type="object"
|
||||
icon="fa-ticket"
|
||||
groups="event.group_event_user"
|
||||
name="action_event_view" attrs="{'invisible': [('event_count','=', 0)]}">
|
||||
<field string="Events" name="event_count" widget="statinfo"/>
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user