PURPOSE
Allow the user to schedule SMS communication on events
SPECIFICATION
In event.event form view:
* rename tab 'Email Schedule' to 'Communication'
* add a selection field at the beginning of event_mail_ids with label 'Send'
and values 'Email' and 'SMS Text Message' (required with default value
'Email');
* add support of SMS template and SMS sending in event communication;
When sending SMS on event registrations, keep a log of what has been sent.
Use mobile or phone field of event registration as both may contain valid
values, like partner model.
Add SMS template data
* Name: Event: Registration (see data)
* Name: Event: Reminder (see data)
Improve registration model
* add a mobile field to the attendees form view: https://nimb.ws/p0VvyS
Technically this task uses the newly-introduced API methods allowing to
send and schedule SMS.
LINKS
Task 1922187
Part of PR #34705
19 lines
1.1 KiB
XML
19 lines
1.1 KiB
XML
<?xml version="1.0"?>
|
|
<odoo><data noupdate="1">
|
|
|
|
<record id="sms_template_data_event_registration" model="sms.template">
|
|
<field name="name">Event: Registration</field>
|
|
<field name="model_id" ref="event.model_event_registration"/>
|
|
<field name="body">${object.event_id.organizer_id.name or object.event_id.company_id.name or user.env.company_id.name}: We are happy to confirm your registration for the ${object.event_id.name} event.</field>
|
|
<field name="lang">${object.partner_id.lang}</field>
|
|
</record>
|
|
|
|
<record id="sms_template_data_event_reminder" model="sms.template">
|
|
<field name="name">Event: Reminder</field>
|
|
<field name="model_id" ref="event.model_event_registration"/>
|
|
<field name="body">${object.event_id.organizer_id.name or object.event_id.company_id.name or user.env.company_id.name}: We are excited to remind you that the ${object.event_id.name} event is starting ${object.get_date_range_str()}. We confirm your registration and hope to meet you there.</field>
|
|
<field name="lang">${object.partner_id.lang}</field>
|
|
</record>
|
|
|
|
</data></odoo>
|