SMS Templates
An SMS template is a saved text that you can use again. It is made for one kind of record, for example a delivery or an event registration, and it can use the fields of this record. Odoo already has some templates of its own. The list is in Settings > Technical > Phone / SMS > SMS Templates (the developer mode is needed to see it).
Here there are four: Calendar Event: Reminder, Delivery: Send by SMS Text Message, Event: Registration and Event: Reminder. They are used by the Calendar, Inventory and Events apps. Open a template to see how it is made.
SMS Template. The name of the template.
Applies to. The kind of record that the template is for (here, Event Registration). The template can then use the fields of this kind of record.
Language. Shown only in the developer mode. A code like en_US, or a field that gives the language of the customer, so that the text is sent in the language of the customer.
The text. It has fields between double curly brackets, like {{ object.event_id.name }}. Odoo replaces each field with the real value of the record when the message is sent. The templates of Odoo use some more advanced code, as you see in the picture, but a simple template can only have words and fields.
Preview. Opens a window where you choose a real record and see the final text. Here there are no event registrations, so the window says No records.
Add Context Action and Remove Context Action (developer mode). Adds an item Send SMS to the Actions menu of the records, so that a user can send this template to the chosen records with one click. Remove undoes it.
Reset Template. For a template that comes with Odoo, only an administrator sees this button. It puts back the original text, if somebody has changed it.
Templates are used by other apps. For example, the Calendar app can send an SMS reminder, Inventory can send an SMS when a delivery is done, and Events can send a text to the people who register. Section 9 lists these links.