Odoo Integration with Twilio Messaging
- Send Whatsapp/SMS Message to Partner. Introduces dropdown action to send partner whatsapp message/SMS.
- Has 3 inbuilt templates corresponding to twilio whatsapp templates. Choose template while sending message. Available templates are Authentication template, Appointment template and Order template.
- Can be used in any module that depends on this module.
#Steps
- Add this module to depends list in your manifest python file.
'depends': ['twilio_odoo_messager']
- Create a method in your model to send sms/whatsapp. Generate payload and send to api.
payload = {'message': 'message body here', 'text_to': 'To phone', 'api_type': 'sms type here'}
response = self.env['twilio_odoo_messenger.api']._twilio_messaging(payload)
- Examine the response which contains status code and info dict.