diff options
| author | Prakash Prajapati <ppr@odoo.com> | 2019-07-01 09:15:55 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-08-01 11:39:51 +0000 |
| commit | 1a33056557be7b5696854d3056ea79204f36eae4 (patch) | |
| tree | 9a6bc539c0f9ddbd3175477af80b7f497be0eeac /addons/mass_mailing_event_track | |
| parent | 0c808a082f30fde781d3b5fb1da405eb00409842 (diff) | |
[IMP] various: Clean stat buttons across all modules.
Purpose
=======
Make them consistent.
Make sure context is correctly set.
Prevent creation when necessary.
Specification
=============
See https://www.odoo.com/web#id=2024467&action=333&active_id=1251&model=project.task&view_type=form&menu_id=4720
for the detailed list of all the requested improvements.
TaskID: 2024467
closes odoo/odoo#34561
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/mass_mailing_event_track')
| -rw-r--r-- | addons/mass_mailing_event_track/views/event_views.xml | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/addons/mass_mailing_event_track/views/event_views.xml b/addons/mass_mailing_event_track/views/event_views.xml index 6e3e60fc781..d82be2f9f0a 100644 --- a/addons/mass_mailing_event_track/views/event_views.xml +++ b/addons/mass_mailing_event_track/views/event_views.xml @@ -5,14 +5,9 @@ <field name="model">event.event</field> <field name="inherit_id" ref="website_event_track.view_event_form"/> <field name="arch" type="xml"> - <button name="%(website_event_track.action_event_track_from_event)d" position="after"> - <button class="oe_stat_button" type="object" - name="action_mass_mailing_track_speakers" - string="Mail Track Speakers" - icon="fa-envelope-o" - attrs="{'invisible': [('track_count', '=', 0)]}"> - </button> - </button> + <xpath expr="//button[@name='button_cancel']" position="after"> + <button name="action_mass_mailing_track_speakers" string="Mail Track Speakers" type="object" attrs="{'invisible': [('track_count', '=', 0)]}"/> + </xpath> </field> </record> </odoo> |
