diff options
Diffstat (limited to 'addons/sms/models/mail_message.py')
| -rw-r--r-- | addons/sms/models/mail_message.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/addons/sms/models/mail_message.py b/addons/sms/models/mail_message.py new file mode 100644 index 00000000000..fbd0465f746 --- /dev/null +++ b/addons/sms/models/mail_message.py @@ -0,0 +1,13 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import api, fields, models + + +class MailMessage(models.Model): + """ Override MailMessage class in order to add a new type: SMS messages. + Those messages comes with their own notification method, using SMS + gateway. """ + _inherit = 'mail.message' + + message_type = fields.Selection(selection_add=[('sms', 'SMS')]) |
