summaryrefslogtreecommitdiff
path: root/addons/sms
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2021-05-11 14:14:00 +0000
committerThibault Delavallée <tde@odoo.com>2021-05-11 14:27:50 +0000
commit4b0c551194e8ef66df9136629afe71566ffe212e (patch)
tree42fdc555e5081df99dbb3d6e94901df47f9a37e0 /addons/sms
parentd0db984990679a63714ca62e6b605d94af7d5c28 (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/sms')
-rw-r--r--addons/sms/models/res_partner.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/sms/models/res_partner.py b/addons/sms/models/res_partner.py
index 987791da643..3159cb98575 100644
--- a/addons/sms/models/res_partner.py
+++ b/addons/sms/models/res_partner.py
@@ -17,4 +17,5 @@ class ResPartner(models.Model):
def _sms_get_number_fields(self):
""" This method returns the fields to use to find the number to use to
send an SMS on a record. """
+ # TDE note: should override _phone_get_number_fields but ok as sms override it
return ['mobile', 'phone']