diff options
| author | RomainLibert <rli@odoo.com> | 2018-06-13 09:57:32 +0200 |
|---|---|---|
| committer | RomainLibert <rli@odoo.com> | 2018-06-14 14:55:55 +0200 |
| commit | ed47e3a5462d6a35dd5affa3beea7deff408fced (patch) | |
| tree | eadc02fb89900253138ff33cfa5686696da24f72 | |
| parent | 1bde9b1ec4523a644a8c09f1d1d918accafe0a1a (diff) | |
[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
| -rw-r--r-- | addons/event/views/res_partner_views.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/event/views/res_partner_views.xml b/addons/event/views/res_partner_views.xml index 8fd4b774c5e..0bf7f366615 100644 --- a/addons/event/views/res_partner_views.xml +++ b/addons/event/views/res_partner_views.xml @@ -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> |
