summaryrefslogtreecommitdiff
path: root/addons/test_mail_full
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/test_mail_full
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/test_mail_full')
-rw-r--r--addons/test_mail_full/models/test_mail_models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/test_mail_full/models/test_mail_models.py b/addons/test_mail_full/models/test_mail_models.py
index 02f330d8f26..1d05eab7123 100644
--- a/addons/test_mail_full/models/test_mail_models.py
+++ b/addons/test_mail_full/models/test_mail_models.py
@@ -45,6 +45,7 @@ class MailTestSMSBL(models.Model):
return ['customer_id']
def _sms_get_number_fields(self):
+ # TDE note: should override _phone_get_number_fields but ok as sms in dependencies
return ['phone_nbr', 'mobile_nbr']