summaryrefslogtreecommitdiff
path: root/addons/mass_mailing_event_sms
diff options
context:
space:
mode:
authorPatrick Hoste <pko@odoo.com>2020-01-14 08:56:43 +0000
committerPatrick Hoste <pko@odoo.com>2020-02-04 14:48:31 +0000
commit3f45e782b7738502f2e83eedc79aa7a14f1784e1 (patch)
tree6e8d78c8049276ea1233a45bce894f507bae5491 /addons/mass_mailing_event_sms
parent67c090e48a8b6bd418998198d9672efe079fbc73 (diff)
[IMP] (mass_mailing_)event(_sms): adds send invitation button on event form
PURPOSE Integrate the mass_mailing feature to event in order to send an invitation to the event you organized. Task ID : 2093336 PR : #43420
Diffstat (limited to 'addons/mass_mailing_event_sms')
-rw-r--r--addons/mass_mailing_event_sms/models/event.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/mass_mailing_event_sms/models/event.py b/addons/mass_mailing_event_sms/models/event.py
index e2d4df79bd6..eb4a27bc3a1 100644
--- a/addons/mass_mailing_event_sms/models/event.py
+++ b/addons/mass_mailing_event_sms/models/event.py
@@ -12,3 +12,9 @@ class Event(models.Model):
action = super(Event, self).action_mass_mailing_attendees()
action['view_id'] = self.env.ref('mass_mailing_sms.mailing_mailing_view_form_mixed').id
return action
+
+ def action_invite_contacts(self):
+ # Minimal override: set form view being the one mixing sms and mail (not prioritized one)
+ action = super(Event, self).action_invite_contacts()
+ action['view_id'] = self.env.ref('mass_mailing_sms.mailing_mailing_view_form_mixed').id
+ return action