Files
odoo_source/addons/mass_mailing_event_track_sms/models/event.py
T
Thibault Delavallée 91705a2d7c [ADD] mass_mailing_event_track_sms: allow to perform SMS marketing on speakers
PURPOSE

Do like Mail Speakers, but with SMS, in a single "Contact" button.

SPECIFICATIONS

Specifications:
  * on event form view, rename "Mail Speakers" button to "Contact Speakers"
    and open a mixed for view on mailing.mailing allowing to choose the type
    of mailing;
  * send SMS to all speakers;
  * see https://drive.google.com/file/d/1-7iDaNJSZbdTW1PYMU2vWtfPHGJmN7SF/edit

FP "Testing Weekend nothing works" request

LINKS

Task ID 2075183 (sms on speakers)
PR #37185
2019-09-20 13:44:09 +00:00

15 lines
522 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class Event(models.Model):
_inherit = "event.event"
def action_mass_mailing_track_speakers(self):
# Minimal override: set form view being the one mixing sms and mail (not prioritized one)
action = super(Event, self).action_mass_mailing_track_speakers()
action['view_id'] = self.env.ref('mass_mailing_sms.mailing_mailing_view_form_mixed').id
return action