[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:
RomainLibert
2018-06-14 14:55:55 +02:00
parent 1bde9b1ec4
commit ed47e3a546
+1
View File
@@ -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>