RATIONALE Simplify field management for mail / phone / sms flows. Make it working out of the box, easier to use and tweak. SPECIFICATIONS '_sms_get_default_partners' exists in SMS to find default customers to notify when sending automated SMS. It can be replaced by '_mail_get_partners' helper available on BaseModel in mail. A specific case exists in calendar where it was overridden to avoid notifying attendees that declined the event, notably for alarms. This feature has been moved directly in the reminder sending method, to keep behavior coherent. Test is updated accordingly, and is now really using the SMS mocks to simulate the sending. Task-3422449 (Mail, Phone: Move and improve field helpers) Part-of: odoo/odoo#130468
10 lines
236 B
Python
10 lines
236 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import models
|
|
|
|
|
|
class ResPartner(models.Model):
|
|
_name = 'res.partner'
|
|
_inherit = ['mail.thread.phone', 'res.partner']
|