[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#58405 X-original-commit: cf69e172f3f22a477686a23be1c3575a19f70c05 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user