blob: 73a3431e1562a640aed4cac043fed914b759687a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class MailingContact(models.Model):
_name = 'mailing.contact'
_inherit = ['mailing.contact', 'mail.thread.phone']
mobile = fields.Char(string='Mobile')
def _sms_get_number_fields(self):
# TDE note: should override _phone_get_number_fields but ok as sms is in dependencies
return ['mobile']
|