summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorstd-odoo <std@odoo.com>2020-09-01 07:10:19 +0000
committerstd-odoo <std@odoo.com>2020-09-24 10:04:13 +0000
commit4de52edd5fa6be6da99bc2409eea122c79f545c5 (patch)
treeb75acc17bf887e75bf34222f3a4ccfc54b96b7e5 /addons
parentb1a37e552d6ab5504f2ef8c52a7312fd5d025c79 (diff)
[FIX] mass_mailing_event_track: hide the button "Contact Track Speakers" when needed
Purpose ======= A user without the group "Marketing User" might see the button "Contact Track Speakers" in the event form view. If he click on the button, an error is raised. Task-2320370 closes odoo/odoo#58399 X-original-commit: cf69e172f3f22a477686a23be1c3575a19f70c05 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/mass_mailing_event_track/views/event_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mass_mailing_event_track/views/event_views.xml b/addons/mass_mailing_event_track/views/event_views.xml
index 2e18a8bbe0f..457c76f0834 100644
--- a/addons/mass_mailing_event_track/views/event_views.xml
+++ b/addons/mass_mailing_event_track/views/event_views.xml
@@ -7,7 +7,7 @@
<field name="inherit_id" ref="event.view_event_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='stage_id']" position="before">
- <button name="action_mass_mailing_track_speakers" string="Contact Track Speakers" type="object" attrs="{'invisible': [('track_count', '=', 0)]}"/>
+ <button name="action_mass_mailing_track_speakers" string="Contact Track Speakers" type="object" attrs="{'invisible': [('track_count', '=', 0)]}" groups="mass_mailing.group_mass_mailing_user"/>
</xpath>
</field>
</record>