flectra/addons/sms/models/res_partner.py

15 lines
375 B
Python
Raw Normal View History

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class ResPartner(models.Model):
_inherit = 'res.partner'
def _get_default_sms_recipients(self):
""" Override of mail.thread method.
SMS recipients on partners are the partners themselves.
"""
return self