diff options
| author | Thibault Delavallée <tde@odoo.com> | 2021-05-11 14:14:00 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2021-05-11 14:27:50 +0000 |
| commit | 4b0c551194e8ef66df9136629afe71566ffe212e (patch) | |
| tree | 42fdc555e5081df99dbb3d6e94901df47f9a37e0 /addons/mass_mailing_sms | |
| parent | d0db984990679a63714ca62e6b605d94af7d5c28 (diff) | |
[FIX] crm: correctly compute phone_sanitized without having crm_sms installed
Currently phone_sanitized computation on lead model works only if crm_sms
is installed. Indeed an override of ``_phone_get_number_fields`` is missing.
However ``_sms_get_number_fields`` coming with ``crm_sms`` and its ``sms``
dependency hides the issue as those modules are auto-install. However if
``crm_sms`` is uninstalled phone_sanitized is not correctly computed anymore.
Task ID-2528169
Oversight of odoo/odoo#45315
Diffstat (limited to 'addons/mass_mailing_sms')
| -rw-r--r-- | addons/mass_mailing_sms/models/mailing_contact.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/mass_mailing_sms/models/mailing_contact.py b/addons/mass_mailing_sms/models/mailing_contact.py index 68050b519d3..73a3431e156 100644 --- a/addons/mass_mailing_sms/models/mailing_contact.py +++ b/addons/mass_mailing_sms/models/mailing_contact.py @@ -11,4 +11,5 @@ class MailingContact(models.Model): 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'] |
